perl: revert "re-enable the postPatch hook on Darwin"
This reverts commit 1778200519a18ae00751ab3015d0e665373c32f6. 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:
parent
1778200519
commit
71f191bdba
@ -77,12 +77,12 @@ stdenv.mkDerivation rec {
|
|||||||
cpan/CPANPLUS/t/20_CPANPLUS-Dist-MM.t \
|
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
|
for test in ${testsToSkip}; do
|
||||||
echo "Removing test" $test
|
echo "Removing test" $test
|
||||||
rm "$test"
|
rm "$test"
|
||||||
pat=`echo "$test" | sed 's,/,\\\\/,g'` # just escape slashes
|
pat=`echo "$test" | sed 's,/,\\\\/,g'` # just escape slashes
|
||||||
sed "/^$pat/d" -i.bak MANIFEST
|
sed "/^$pat/d" -i MANIFEST
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user