diff options
author | Edward Tjörnhammar <ed@cflags.cc> | 2015-04-28 22:35:39 +0200 |
---|---|---|
committer | Edward Tjörnhammar <ed@cflags.cc> | 2015-04-28 22:44:57 +0200 |
commit | 4256ab778a0cc50c88cbd0366c2f126edb06fc30 (patch) | |
tree | 18e315124a75766973be6cc52b140138ae7a2114 /pkgs/build-support/fetchhg | |
parent | cb8f111a72a54888dea24b6ccbdb5a657577983f (diff) | |
download | nixpkgs-4256ab778a0cc50c88cbd0366c2f126edb06fc30.tar nixpkgs-4256ab778a0cc50c88cbd0366c2f126edb06fc30.tar.gz nixpkgs-4256ab778a0cc50c88cbd0366c2f126edb06fc30.tar.bz2 nixpkgs-4256ab778a0cc50c88cbd0366c2f126edb06fc30.tar.lz nixpkgs-4256ab778a0cc50c88cbd0366c2f126edb06fc30.tar.xz nixpkgs-4256ab778a0cc50c88cbd0366c2f126edb06fc30.tar.zst nixpkgs-4256ab778a0cc50c88cbd0366c2f126edb06fc30.zip |
fetchhg: pass proxyvars to hg
Diffstat (limited to 'pkgs/build-support/fetchhg')
-rw-r--r-- | pkgs/build-support/fetchhg/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchhg/default.nix b/pkgs/build-support/fetchhg/default.nix index 4675cbe6ec8..26426ce7d83 100644 --- a/pkgs/build-support/fetchhg/default.nix +++ b/pkgs/build-support/fetchhg/default.nix @@ -6,13 +6,17 @@ stdenv.mkDerivation { builder = ./builder.sh; buildInputs = [mercurial]; + impureEnvVars = [ + "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy" + ]; + # Nix <= 0.7 compatibility. id = md5; outputHashAlgo = if md5 != null then "md5" else "sha256"; outputHashMode = "recursive"; outputHash = if md5 != null then md5 else sha256; - + inherit url rev; preferLocalBuild = true; } |