diff options
author | Silvan Mosberger <contact@infinisil.com> | 2019-08-13 01:04:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-13 01:04:42 +0200 |
commit | 47fa2f133dec6842c7fea867ef948c8f8c614117 (patch) | |
tree | 06b1d4b1c98a6ecdfb720c9c2477e0f0ff94a7bb | |
parent | c78fead2069a6df49e18f0b4db4c833bba1b2902 (diff) | |
parent | b7dfc72a88dba88a606676b305ae0d36fcf4b274 (diff) | |
download | nixlib-47fa2f133dec6842c7fea867ef948c8f8c614117.tar nixlib-47fa2f133dec6842c7fea867ef948c8f8c614117.tar.gz nixlib-47fa2f133dec6842c7fea867ef948c8f8c614117.tar.bz2 nixlib-47fa2f133dec6842c7fea867ef948c8f8c614117.tar.lz nixlib-47fa2f133dec6842c7fea867ef948c8f8c614117.tar.xz nixlib-47fa2f133dec6842c7fea867ef948c8f8c614117.tar.zst nixlib-47fa2f133dec6842c7fea867ef948c8f8c614117.zip |
Merge pull request #66506 from nh2/fetchurl-dont-force-set-gssSupport
fetchurl: Don't force-override curl's gssSupport to on unnecessarily
-rw-r--r-- | pkgs/top-level/all-packages.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c4169b9bb846..b27b57d4f6c8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -275,7 +275,7 @@ in # `fetchurl' downloads a file from the network. fetchurl = makeOverridable (import ../build-support/fetchurl) { inherit lib stdenvNoCC; - curl = buildPackages.curl.override rec { + curl = buildPackages.curl.override (old: rec { # break dependency cycles fetchurl = stdenv.fetchurlBoot; zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; }; @@ -292,7 +292,12 @@ in }; # On darwin, libkrb5 needs bootstrap_cmds which would require # converting many packages to fetchurl_boot to avoid evaluation cycles. - gssSupport = !stdenv.isDarwin && !stdenv.hostPlatform.isWindows; + # So turn gssSupport off there, and on Windows. + # On other platforms, keep the previous value. + gssSupport = + if stdenv.isDarwin || stdenv.hostPlatform.isWindows + then false + else old.gssSupport or true; # `? true` is the default libkrb5 = buildPackages.libkrb5.override { fetchurl = stdenv.fetchurlBoot; inherit pkgconfig perl openssl; @@ -304,7 +309,7 @@ in c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; }; libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; }; }; - }; + }); }; fetchRepoProject = callPackage ../build-support/fetchrepoproject { }; |