2016-08-19 06:29:30 +01:00
|
|
|
{stdenv, fossil}:
|
|
|
|
|
2016-08-21 19:52:53 +01:00
|
|
|
{name ? null, url, rev, sha256}:
|
2016-08-19 06:29:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
|
|
|
builder = ./builder.sh;
|
2018-01-09 20:36:14 +00:00
|
|
|
nativeBuildInputs = [fossil];
|
2016-08-19 06:29:30 +01:00
|
|
|
|
2016-08-19 15:34:58 +01: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" ];
|
2016-08-19 06:29:30 +01:00
|
|
|
|
2016-08-21 19:52:53 +01:00
|
|
|
outputHashAlgo = "sha256";
|
2016-08-19 06:29:30 +01:00
|
|
|
outputHashMode = "recursive";
|
2016-08-21 19:52:53 +01:00
|
|
|
outputHash = sha256;
|
2016-08-19 06:29:30 +01:00
|
|
|
|
|
|
|
inherit url rev;
|
|
|
|
preferLocalBuild = true;
|
|
|
|
}
|