blob: e0075fd8361ec903aeeaa8202e2b28446ccdd570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
stdenv,
lib,
fossil,
cacert,
}:
lib.fetchers.withNormalizedHash { } (
{
name ? null,
url,
rev,
outputHash ? lib.fakeHash,
outputHashAlgo ? null,
}:
stdenv.mkDerivation {
name = "fossil-archive" + (lib.optionalString (name != null) "-${name}");
builder = ./builder.sh;
nativeBuildInputs = [
fossil
cacert
];
strictDeps = true;
__structuredAttrs = true;
# 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" ];
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
inherit url rev;
preferLocalBuild = true;
}
)
|