Merge pull request #66506 from nh2/fetchurl-dont-force-set-gssSupport
fetchurl: Don't force-override curl's gssSupport to on unnecessarily
This commit is contained in:
commit
47fa2f133d
|
@ -275,7 +275,7 @@ in
|
||||||
# `fetchurl' downloads a file from the network.
|
# `fetchurl' downloads a file from the network.
|
||||||
fetchurl = makeOverridable (import ../build-support/fetchurl) {
|
fetchurl = makeOverridable (import ../build-support/fetchurl) {
|
||||||
inherit lib stdenvNoCC;
|
inherit lib stdenvNoCC;
|
||||||
curl = buildPackages.curl.override rec {
|
curl = buildPackages.curl.override (old: rec {
|
||||||
# break dependency cycles
|
# break dependency cycles
|
||||||
fetchurl = stdenv.fetchurlBoot;
|
fetchurl = stdenv.fetchurlBoot;
|
||||||
zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
|
zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
|
||||||
|
@ -292,7 +292,12 @@ in
|
||||||
};
|
};
|
||||||
# On darwin, libkrb5 needs bootstrap_cmds which would require
|
# On darwin, libkrb5 needs bootstrap_cmds which would require
|
||||||
# converting many packages to fetchurl_boot to avoid evaluation cycles.
|
# 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 {
|
libkrb5 = buildPackages.libkrb5.override {
|
||||||
fetchurl = stdenv.fetchurlBoot;
|
fetchurl = stdenv.fetchurlBoot;
|
||||||
inherit pkgconfig perl openssl;
|
inherit pkgconfig perl openssl;
|
||||||
|
@ -304,7 +309,7 @@ in
|
||||||
c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
|
c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
|
||||||
libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
|
libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchRepoProject = callPackage ../build-support/fetchrepoproject { };
|
fetchRepoProject = callPackage ../build-support/fetchrepoproject { };
|
||||||
|
|
Loading…
Reference in New Issue