76b74ab2f1
This effectively means that SHA256 is the only way to go. I'm not really bothered by this.
20 lines
494 B
Nix
20 lines
494 B
Nix
{stdenv, fossil}:
|
|
|
|
{name ? null, url, rev, sha256}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
|
builder = ./builder.sh;
|
|
buildInputs = [fossil];
|
|
|
|
# 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;
|
|
}
|