From fb93bfc0bc14ca540072c39b91268c9555133cbb Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sun, 1 May 2016 01:18:15 +0200 Subject: [PATCH] angband: cleanups --- pkgs/games/angband/default.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/games/angband/default.nix b/pkgs/games/angband/default.nix index 5a026099076..c0445811f39 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; }; }