From 53b389327e34de319dc0dbda2b6bcab1a69db69d Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Sun, 17 Jan 2016 23:04:40 +0000 Subject: refactor to use autoreconfHook where possible Close #12446. --- pkgs/games/rili/default.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'pkgs/games/rili') diff --git a/pkgs/games/rili/default.nix b/pkgs/games/rili/default.nix index fbf47653af99..7d1273328453 100644 --- a/pkgs/games/rili/default.nix +++ b/pkgs/games/rili/default.nix @@ -1,8 +1,8 @@ -{stdenv, fetchurl, SDL_mixer, SDL, autoconf, automake}: +{ stdenv, fetchurl, SDL_mixer, SDL, autoreconfHook }: stdenv.mkDerivation { - name = "ri_li-2.0.1"; - + name = "ri_li-2.0.1"; + src = fetchurl { url = mirror://sourceforge/ri-li/Ri-li-2.0.1.tar.bz2; sha256 = "f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd"; @@ -10,13 +10,10 @@ stdenv.mkDerivation { patches = [ ./moderinze_cpp.patch ]; - preConfigure = '' - export CPPFLAGS="-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include" - autoreconf -i - ''; - - buildInputs = [SDL SDL_mixer autoconf automake]; - + CPPFLAGS = "-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include"; + + buildInputs = [ SDL SDL_mixer autoreconfHook ]; + meta = { homepage = http://ri-li.sourceforge.net; license = stdenv.lib.licenses.gpl2Plus; -- cgit 1.4.1