2020-11-30 08:33:03 +00:00
|
|
|
{stdenv, fossil, cacert}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
{name ? null, url, rev, sha256}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
|
|
|
builder = ./builder.sh;
|
2020-11-30 08:33:03 +00:00
|
|
|
nativeBuildInputs = [fossil cacert];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Envvar docs are hard to find. A link for the future:
|
|
|
|
# https://www.fossil-scm.org/index.html/doc/trunk/www/env-opts.md
|
|
|
|
impureEnvVars = [ "http_proxy" ];
|
|
|
|
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = sha256;
|
|
|
|
|
|
|
|
inherit url rev;
|
|
|
|
preferLocalBuild = true;
|
|
|
|
}
|