about summary refs log tree commit diff
path: root/pkgs/games/rili
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-01-17 23:04:40 +0000
committerVladimír Čunát <vcunat@gmail.com>2016-01-18 10:45:31 +0100
commit53b389327e34de319dc0dbda2b6bcab1a69db69d (patch)
tree04dece6a1e346ccb4563f61ec206cf03dc46e77f /pkgs/games/rili
parent620c147ccee09d7d068fa21b2b5b94b6695993a5 (diff)
refactor to use autoreconfHook where possible
Close #12446.
Diffstat (limited to 'pkgs/games/rili')
-rw-r--r--pkgs/games/rili/default.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgs/games/rili/default.nix b/pkgs/games/rili/default.nix
index fbf47653af99b..7d12733284537 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;