mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
perlPackages.WWWMechanizeCGI: Use substituteInPlace, should fix darwin build
This commit is contained in:
parent
6eab450ebd
commit
21cb877e11
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue