Author: rob
Date: Mon May  2 12:16:56 2011
New Revision: 27093
URL: https://svn.nixos.org/websvn/nix/?rev=27093&sc=1

Log:
wget/release.nix: patch some scripts

Modified:
   hydra-config/gnu/trunk/wget/release.nix

Modified: hydra-config/gnu/trunk/wget/release.nix
==============================================================================
--- hydra-config/gnu/trunk/wget/release.nix     Mon May  2 12:11:17 2011        
(r27092)
+++ hydra-config/gnu/trunk/wget/release.nix     Mon May  2 12:16:56 2011        
(r27093)
@@ -29,6 +29,11 @@
 
   buildInputsFrom = pkgs: with pkgs; [openssl perl];
   configureFlags = "--with-ssl=openssl";
+  preConfigure = ''
+    sed -i 's|/usr/bin/env|${pkgs.coreutils}/bin/env|' tests/run-px
+    find . -name "*.pl" | xargs sed -i 
's|/usr/bin/env|${pkgs.coreutils}/bin/env|' 
+  '';
+
 in 
   import ../gnu-jobs.nix {
     name = "wget";
@@ -54,20 +59,16 @@
         ] ++ buildInputsFrom pkgs;
 
         inherit configureFlags ; 
-
-        preConfigure = ''
-          sed -i 's|/usr/bin/env|${pkgs.coreutils}/bin/env|' tests/run-px
-        '';
       } ;
 
       build = pkgs: {
         buildInputs = buildInputsFrom pkgs;
-        inherit configureFlags ; 
+        inherit configureFlags preConfigure; 
       };      
 
       coverage = pkgs: {
         buildInputs = buildInputsFrom pkgs;
-        inherit configureFlags ; 
+        inherit configureFlags preConfigure; 
       };      
     };   
   }
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to