diff options
Diffstat (limited to 'pkgs/games/eternity-engine')
-rw-r--r-- | pkgs/games/eternity-engine/default.nix | 29 | ||||
-rw-r--r-- | pkgs/games/eternity-engine/master.nix | 30 |
2 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/games/eternity-engine/default.nix b/pkgs/games/eternity-engine/default.nix new file mode 100644 index 0000000000000..2e04c76a990ce --- /dev/null +++ b/pkgs/games/eternity-engine/default.nix @@ -0,0 +1,29 @@ +{ stdenv, cmake, mesa, SDL, SDL_mixer, SDL_net, fetchurl }: + +stdenv.mkDerivation rec { + name = "eternity-engine-3.40.46"; + src = fetchurl { + url = https://github.com/team-eternity/eternity/archive/3.40.46.tar.gz; + sha256 = "0jq8q0agw7lgab9q2h8wcaakvg913l9j3a6ss0hn9661plkw2yb4"; + }; + + cmakeFlags = '' + -DCMAKE_BUILD_TYPE=Release + ''; + + buildInputs = [ stdenv cmake mesa SDL SDL_mixer SDL_net ]; + + enableParallelBuilding = true; + + installPhase = '' + mkdir -p $out/bin + cp source/eternity $out/bin + ''; + + meta = { + homepage = http://doomworld.com/eternity; + description = "New school Doom port by James Haley"; + license = stdenv.lib.licenses.gpl3; + maintainers = with stdenv.lib.maintainers; [ MP2E ]; + }; +} diff --git a/pkgs/games/eternity-engine/master.nix b/pkgs/games/eternity-engine/master.nix new file mode 100644 index 0000000000000..0d0f8e26b4407 --- /dev/null +++ b/pkgs/games/eternity-engine/master.nix @@ -0,0 +1,30 @@ +{ stdenv, cmake, mesa, SDL, SDL_mixer, SDL_net, fetchgit }: + +stdenv.mkDerivation rec { + name = "eternity-engine-20140902"; + src = fetchgit { + url = git://github.com/team-eternity/eternity.git; + rev = "db21379abb33f6d92dc0e1665e527e4d49acc722"; + sha256 = "0k54yvxqxnd60az21b734ka3myxkqb7pjmdp3klrkfwp1kl02ysc"; + }; + + cmakeFlags = '' + -DCMAKE_BUILD_TYPE=Release + ''; + + buildInputs = [ stdenv cmake mesa SDL SDL_mixer SDL_net ]; + + enableParallelBuilding = true; + + installPhase = '' + mkdir -p $out/bin + cp source/eternity $out/bin + ''; + + meta = { + homepage = http://doomworld.com/eternity; + description = "New school Doom port by James Haley"; + license = stdenv.lib.licenses.gpl3; + maintainers = with stdenv.lib.maintainers; [ MP2E ]; + }; +} |