about summary refs log tree commit diff
path: root/pkgs/games/angband/default.nix
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-05-01 01:18:15 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-05-01 01:22:49 +0200
commitfb93bfc0bc14ca540072c39b91268c9555133cbb (patch)
tree1c8419ce3390cefec0c09b53cac7957319360dfc /pkgs/games/angband/default.nix
parent8d5962a69064798883e1654ad585d21d3f06dd99 (diff)
downloadnixlib-fb93bfc0bc14ca540072c39b91268c9555133cbb.tar
nixlib-fb93bfc0bc14ca540072c39b91268c9555133cbb.tar.gz
nixlib-fb93bfc0bc14ca540072c39b91268c9555133cbb.tar.bz2
nixlib-fb93bfc0bc14ca540072c39b91268c9555133cbb.tar.lz
nixlib-fb93bfc0bc14ca540072c39b91268c9555133cbb.tar.xz
nixlib-fb93bfc0bc14ca540072c39b91268c9555133cbb.tar.zst
nixlib-fb93bfc0bc14ca540072c39b91268c9555133cbb.zip
angband: cleanups
Diffstat (limited to 'pkgs/games/angband/default.nix')
-rw-r--r--pkgs/games/angband/default.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/games/angband/default.nix b/pkgs/games/angband/default.nix
index 5a026099076f..c0445811f391 100644
--- a/pkgs/games/angband/default.nix
+++ b/pkgs/games/angband/default.nix
@@ -1,23 +1,24 @@
-{stdenv, fetchFromGitHub, autoconf, automake, ncurses }:
+{ stdenv, fetchFromGitHub, autoreconfHook, ncurses }:
 
 stdenv.mkDerivation rec {
   version = "4.0.5";
   name = "angband-${version}";
+
   src = fetchFromGitHub {
     owner = "angband";
     repo = "angband";
     rev = version;
     sha256 = "1l7ybqmsxpsijm7iqiqjpa7lhjafxml743q4crxn8wnwrbjzbi86";
-      };
-  buildInputs = [ autoconf automake ncurses ];
-  configurePhase = ''
-    ./autogen.sh
-    ./configure --prefix=$out --bindir=$out/bin --disable-x11
-  '';
-  meta = {
-    homepage = "http://rephial.org/";
-    description = "Angband (classic rogue-like game)";
-    maintainers = [ stdenv.lib.maintainers.chattered  ];
-    license = stdenv.lib.licenses.gpl2;
+  };
+
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ ncurses ];
+  installFlags = "bindir=$(out)/bin";
+
+  meta = with stdenv.lib; {
+    homepage = http://rephial.org/;
+    description = "A single-player roguelike dungeon exploration game";
+    maintainers = [ maintainers.chattered  ];
+    license = licenses.gpl2;
   };
 }