Merge pull request #985 from ocharles/perl

perlPackages.WWWMechanizeCGI: Use substituteInPlace, should fix darwin build
This commit is contained in:
Peter Simons 2013-09-18 08:09:25 -07:00
commit 0d72bb5226
1 changed files with 4 additions and 1 deletions

View File

@ -9039,7 +9039,10 @@ rec {
sha256 = "046jm18liq7rwkdawdh9520cnalkfrk26yqryp7xgw71y65lvq61";
};
propagatedBuildInputs = [ HTTPRequestAsCGI WWWMechanize ];
preConfigure = "sed -i 's|#!/usr/bin/perl|#!${perl}/bin/perl|' t/cgi-bin/script.cgi";
preConfigure = ''
substituteInPlace t/cgi-bin/script.cgi \
--replace '#!/usr/bin/perl' '#!${perl}/bin/perl'
'';
meta = {
maintainers = with maintainers; [ ocharles ];
platforms = stdenv.lib.platforms.unix;