From 9f2cc141071fbb61faa93c0d068ab3473498cf0c Mon Sep 17 00:00:00 2001 From: Bojan Nikolic Date: Thu, 11 Feb 2016 12:56:38 +0000 Subject: [PATCH] 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. --- pkgs/tools/compression/bzip2/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/compression/bzip2/default.nix b/pkgs/tools/compression/bzip2/default.nix index bb04049d8a66..0d8bfc6894e6 100644 --- a/pkgs/tools/compression/bzip2/default.nix +++ b/pkgs/tools/compression/bzip2/default.nix @@ -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 '';