From cd6033ba97d5694824f1dd169df929af67f00650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Mon, 12 Aug 2019 03:40:03 +0200 Subject: [PATCH] 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. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c4096f24b5f2d..a5b728c8e5522 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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