perl: revert "re-enable the postPatch hook on Darwin"

This reverts commit 1778200519.
Apparently, the sed -i syntax is different from what I thought, because
now the build fails on Darwin, saying:

  sed: -i.bak: No such file or directory

See http://hydra.nixos.org/build/5829944/nixlog/1/raw for more details.
This commit is contained in:
Peter Simons 2013-08-29 12:06:39 +02:00
parent 1778200519
commit 71f191bdba

View file

@ -77,12 +77,12 @@ stdenv.mkDerivation rec {
cpan/CPANPLUS/t/20_CPANPLUS-Dist-MM.t \
'' + " ";
postPatch = ''
postPatch = optionalString (!stdenv.isDarwin) /* this failed on Darwin, no idea why */ ''
for test in ${testsToSkip}; do
echo "Removing test" $test
rm "$test"
pat=`echo "$test" | sed 's,/,\\\\/,g'` # just escape slashes
sed "/^$pat/d" -i.bak MANIFEST
sed "/^$pat/d" -i MANIFEST
done
'';