Skip to content

Commit

Permalink
fetchurl: Make it overridable.
Browse files Browse the repository at this point in the history
This provides a workaround for #66499, because this way
#66499 (comment)

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

works as expected.
  • Loading branch information
nh2 committed Aug 12, 2019
1 parent 07ce48c commit cd6033b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd6033b

Please sign in to comment.