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.
This commit is contained in:
Peter Simons 2013-08-29 10:40:50 +02:00
parent 604d201b7c
commit 1778200519

View File

@ -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
'';