fetchfossil: Cleanup some copy-and-paste.
This commit is contained in:
parent
23a50ca407
commit
7880bc0c21
|
@ -2,15 +2,14 @@
|
||||||
|
|
||||||
{name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
|
{name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
|
||||||
|
|
||||||
# TODO: statically check if mercurial as the https support if the url starts woth https.
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
buildInputs = [fossil];
|
buildInputs = [fossil];
|
||||||
|
|
||||||
impureEnvVars = [
|
# Envvar docs are hard to find. A link for the future:
|
||||||
"http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"
|
# https://www.fossil-scm.org/index.html/doc/trunk/www/env-opts.md
|
||||||
];
|
impureEnvVars = [ "http_proxy" ];
|
||||||
|
|
||||||
outputHashAlgo = if md5 != null then "md5" else "sha256";
|
outputHashAlgo = if md5 != null then "md5" else "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
|
|
Loading…
Reference in New Issue