blob: 1b4e61da0bcaaa5b7c440f5ab5b31f91233eaabb (
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
39
40
41
42
43
44
45
|
{
stdenvNoCC,
darcs,
cacert,
lib,
}:
lib.makeOverridable (
lib.fetchers.withNormalizedHash { } (
{
# Repository to fetch
url,
# Additional list of repositories specifying alternative download
# location to be tried in order, if the prior repository failed to fetch.
mirrors ? [ ],
rev ? null,
context ? null,
outputHash ? lib.fakeHash,
outputHashAlgo ? null,
name ? "fetchdarcs",
}:
stdenvNoCC.mkDerivation {
builder = ./builder.sh;
nativeBuildInputs = [
cacert
darcs
];
strictDeps = true;
__structuredAttrs = true;
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
inherit
rev
context
name
;
repositories = [ url ] ++ mirrors;
}
)
)
|