From 1778200519a18ae00751ab3015d0e665373c32f6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 29 Aug 2013 10:40:50 +0200 Subject: [PATCH] perl: re-enable the postPatch hook on Darwin The problem was that sed(1) variants other than GNU sed require a backup suffix to the -i option. --- pkgs/development/interpreters/perl/5.16/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/perl/5.16/default.nix b/pkgs/development/interpreters/perl/5.16/default.nix index 60bfacf419b2..4cf809c66edb 100644 --- a/pkgs/development/interpreters/perl/5.16/default.nix +++ b/pkgs/development/interpreters/perl/5.16/default.nix @@ -77,12 +77,12 @@ stdenv.mkDerivation rec { cpan/CPANPLUS/t/20_CPANPLUS-Dist-MM.t \ '' + " "; - postPatch = optionalString (!stdenv.isDarwin) /* this failed on Darwin, no idea why */ '' + postPatch = '' for test in ${testsToSkip}; do echo "Removing test" $test rm "$test" pat=`echo "$test" | sed 's,/,\\\\/,g'` # just escape slashes - sed "/^$pat/d" -i MANIFEST + sed "/^$pat/d" -i.bak MANIFEST done '';