bzip2: Fix cross-compilation

The cross-compiling the "patchPhase" from the parent attribute set was
preventing application of patches specified in the crossDrv. Fix by
turning patchPhase into postPatch.
This commit is contained in:
Bojan Nikolic 2016-02-11 12:56:38 +00:00 committed by Peter Simons
parent 508ab8e949
commit 9f2cc14107

View File

@ -58,7 +58,7 @@ in stdenv.mkDerivation {
ln -s bzip2 $out/bin/bzcat
'';
patchPhase = ''
postPatch = ''
substituteInPlace Makefile --replace CC=gcc CC=cc
substituteInPlace Makefile-libbz2_so --replace CC=gcc CC=cc
'';