git.iko.soy/typeable/nixpkgs
on master help sign in
zlib: don't really override CC at ay point

but leave the preConfigure script as it was when not cross building in order to avoid hash breakage

commitf63f96ae355281bf89ea08f5c5af3b939878df5f authorRoss MacLeod <rmm-github@z.odi.ac> dateTue 30 May 2017, 22:20 (10 years ago) parent38b2bd2
1 file changed+8−2
pkgs/development/libraries/zlib/default.nix+8−2
pkgs/development/libraries/zlib/default.nix+8−2
@@ -1,4 +1,8 @@
1−{ stdenv, fetchurl, static ? false }:
1+{ stdenv
2+, fetchurl
3+, buildPlatform, hostPlatform
4+, static ? false
5+}:
26
37let version = "1.2.11"; in
48
@@ -24,7 +28,9 @@ stdenv.mkDerivation rec {
2428 setOutputFlags = false;
2529 outputDoc = "dev"; # single tiny man3 page
2630
27− preConfigure = ''
31+ # TODO(@Dridus) CC set by cc-wrapper setup-hook, so just empty out the preConfigure script when cross building, but leave the old incorrect script when not
32+ # cross building to avoid hash breakage. Once hash breakage is acceptable, remove preConfigure entirely.
33+ preConfigure = stdenv.lib.optionalString (hostPlatform == buildPlatform) ''
2834 if test -n "$crossConfig"; then
2935 export CC=$crossConfig-gcc
3036 fi