2023-02-06 20:49:02 +00:00
|
|
|
{stdenv, lib, fossil, cacert}:
|
2016-08-19 05:29:30 +00:00
|
|
|
|
2024-09-15 22:32:42 +00:00
|
|
|
lib.fetchers.withNormalizedHash { } (
|
|
|
|
{ name ? null
|
|
|
|
, url
|
|
|
|
, rev
|
|
|
|
, outputHash ? lib.fakeHash
|
|
|
|
, outputHashAlgo ? null
|
|
|
|
}:
|
2016-08-19 05:29:30 +00:00
|
|
|
|
2024-09-15 22:32:42 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "fossil-archive" + (lib.optionalString (name != null) "-${name}");
|
|
|
|
builder = ./builder.sh;
|
|
|
|
nativeBuildInputs = [fossil cacert];
|
2016-08-19 05:29:30 +00:00
|
|
|
|
2024-09-15 22:32:42 +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" ];
|
2016-08-19 05:29:30 +00:00
|
|
|
|
2024-09-15 22:32:42 +00:00
|
|
|
inherit outputHash outputHashAlgo;
|
|
|
|
outputHashMode = "recursive";
|
2016-08-19 05:29:30 +00:00
|
|
|
|
2024-09-15 22:32:42 +00:00
|
|
|
inherit url rev;
|
|
|
|
preferLocalBuild = true;
|
|
|
|
}
|
|
|
|
)
|