fetchurl: Make it overridable.

This provides a workaround for #66499, because this way
https://github.com/NixOS/nixpkgs/issues/66499#issuecomment-520277782

    self: super: {
      fetchurl = super.fetchurl.override (old: {
        curl = old.curl.override {
          gssSupport = false;
          # ...
        };
      });
    }

works as expected.
This commit is contained in:
Niklas Hambüchen 2019-08-12 03:40:03 +02:00
parent 07ce48cc3a
commit cd6033ba97

View File

@ -273,7 +273,7 @@ in
fetchhg = callPackage ../build-support/fetchhg { };
# `fetchurl' downloads a file from the network.
fetchurl = import ../build-support/fetchurl {
fetchurl = makeOverridable (import ../build-support/fetchurl) {
inherit lib stdenvNoCC;
curl = buildPackages.curl.override rec {
# break dependency cycles