fetchurl: Make it overridable using callPackage ()

fetchurl: Make it overridable using `callPackage`
This commit is contained in:
Silvan Mosberger 2019-08-12 19:03:30 +02:00 committed by GitHub
commit 096031a513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,7 @@ in
fetchhg = callPackage ../build-support/fetchhg { }; fetchhg = callPackage ../build-support/fetchhg { };
# `fetchurl' downloads a file from the network. # `fetchurl' downloads a file from the network.
fetchurl = 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 rec {
# break dependency cycles # break dependency cycles