git.iko.soy/typeable/nixpkgs
on master help sign in
fetchfossil: Cleanup some copy-and-paste.
commit7880bc0c21498e27523e42f8d3361492dd4fe165 authorCorbin <cds@corbinsimpson.com> dateFri 19 Aug 2016, 07:34 (10 years ago) parent23a50ca
1 file changed+3−4
pkgs/build-support/fetchfossil/default.nix+3−4
pkgs/build-support/fetchfossil/default.nix+3−4
@@ -2,15 +2,14 @@
22
33{name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
44
5−# TODO: statically check if mercurial as the https support if the url starts woth https.
65stdenv.mkDerivation {
76 name = "fossil-archive" + (if name != null then "-${name}" else "");
87 builder = ./builder.sh;
98 buildInputs = [fossil];
109
11− impureEnvVars = [
12− "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"
13− ];
10+ # Envvar docs are hard to find. A link for the future:
11+ # https://www.fossil-scm.org/index.html/doc/trunk/www/env-opts.md
12+ impureEnvVars = [ "http_proxy" ];
1413
1514 outputHashAlgo = if md5 != null then "md5" else "sha256";
1615 outputHashMode = "recursive";