From 21cb877e1134ebcfa2af8ea67c2a85b995d6a9fd Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Tue, 17 Sep 2013 20:19:24 +0100 Subject: [PATCH] perlPackages.WWWMechanizeCGI: Use substituteInPlace, should fix darwin build --- pkgs/top-level/perl-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 9ab8de481d13..b97ab7341729 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -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;