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:
parent
508ab8e949
commit
9f2cc14107
@ -58,7 +58,7 @@ in stdenv.mkDerivation {
|
|||||||
ln -s bzip2 $out/bin/bzcat
|
ln -s bzip2 $out/bin/bzcat
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile --replace CC=gcc CC=cc
|
substituteInPlace Makefile --replace CC=gcc CC=cc
|
||||||
substituteInPlace Makefile-libbz2_so --replace CC=gcc CC=cc
|
substituteInPlace Makefile-libbz2_so --replace CC=gcc CC=cc
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user