summary refs log tree commit diff
path: root/pkgs/games/hyperrogue
diff options
context:
space:
mode:
authorRicardo Ardissone <ricardo.ardissone@gmail.com>2018-07-10 16:24:59 -0300
committerRicardo Ardissone <ricardo.ardissone@gmail.com>2018-07-10 18:36:26 -0300
commit96a6e1f5b5c7ceb84c40506605268382c82006bf (patch)
treea76a2775132a78d26be6b478f70b152a083965d3 /pkgs/games/hyperrogue
parent4b649a99d8461c980e7028a693387dc48033c1f7 (diff)
downloadnixpkgs-96a6e1f5b5c7ceb84c40506605268382c82006bf.tar
nixpkgs-96a6e1f5b5c7ceb84c40506605268382c82006bf.tar.gz
nixpkgs-96a6e1f5b5c7ceb84c40506605268382c82006bf.tar.bz2
nixpkgs-96a6e1f5b5c7ceb84c40506605268382c82006bf.tar.lz
nixpkgs-96a6e1f5b5c7ceb84c40506605268382c82006bf.tar.xz
nixpkgs-96a6e1f5b5c7ceb84c40506605268382c82006bf.tar.zst
nixpkgs-96a6e1f5b5c7ceb84c40506605268382c82006bf.zip
hyperrogue: init at 10.4j
Diffstat (limited to 'pkgs/games/hyperrogue')
-rw-r--r--pkgs/games/hyperrogue/default.nix26
1 files changed, 26 insertions, 0 deletions
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;
+  };
+}