angband: cleanups

+13 -12
+13 -12
pkgs/games/angband/default.nix
··· 1 - {stdenv, fetchFromGitHub, autoconf, automake, ncurses }: 1 + { stdenv, fetchFromGitHub, autoreconfHook, ncurses }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "4.0.5"; 5 5 name = "angband-${version}"; 6 + 6 7 src = fetchFromGitHub { 7 8 owner = "angband"; 8 9 repo = "angband"; 9 10 rev = version; 10 11 sha256 = "1l7ybqmsxpsijm7iqiqjpa7lhjafxml743q4crxn8wnwrbjzbi86"; 11 - }; 12 - buildInputs = [ autoconf automake ncurses ]; 13 - configurePhase = '' 14 - ./autogen.sh 15 - ./configure --prefix=$out --bindir=$out/bin --disable-x11 16 - ''; 17 - meta = { 18 - homepage = "http://rephial.org/"; 19 - description = "Angband (classic rogue-like game)"; 20 - maintainers = [ stdenv.lib.maintainers.chattered ]; 21 - license = stdenv.lib.licenses.gpl2; 12 + }; 13 + 14 + nativeBuildInputs = [ autoreconfHook ]; 15 + buildInputs = [ ncurses ]; 16 + installFlags = "bindir=$(out)/bin"; 17 + 18 + meta = with stdenv.lib; { 19 + homepage = http://rephial.org/; 20 + description = "A single-player roguelike dungeon exploration game"; 21 + maintainers = [ maintainers.chattered ]; 22 + license = licenses.gpl2; 22 23 }; 23 24 }