diff --git a/pkgs/games/hyperrogue/default.nix b/pkgs/games/hyperrogue/default.nix new file mode 100644 index 00000000000..7f7ec00bdd6 --- /dev/null +++ b/pkgs/games/hyperrogue/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, SDL, SDL_ttf, SDL_gfx, SDL_mixer, autoreconfHook, + libpng, glew }: + +stdenv.mkDerivation rec { + name = "hyperrogue-${version}"; + version = "10.4j"; + + src = fetchFromGitHub { + owner = "zenorogue"; + repo = "hyperrogue"; + rev = "v${version}"; + sha256 = "0p0aplfr5hs5dmkgbd4rhvrdk33gss1wdb7knd2vf27n4c2avjcl"; + }; + + CPPFLAGS = "-I${SDL.dev}/include/SDL"; + + buildInputs = [ autoreconfHook SDL SDL_ttf SDL_gfx SDL_mixer libpng glew ]; + + meta = with stdenv.lib; { + homepage = http://www.roguetemple.com/z/hyper/; + description = "A roguelike game set in hyperbolic geometry"; + maintainers = with maintainers; [ rardiol ]; + license = licenses.gpl2; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d652824d8b9..9d8e648e79d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19345,6 +19345,8 @@ with pkgs; holdingnuts = callPackage ../games/holdingnuts { }; + hyperrogue = callPackage ../games/hyperrogue { }; + icbm3d = callPackage ../games/icbm3d { }; ingen = callPackage ../applications/audio/ingen {