Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 stdenv,
3 lib,
4 fossil,
5 cacert,
6}:
7
8lib.fetchers.withNormalizedHash { } (
9 {
10 name ? null,
11 url,
12 rev,
13 outputHash ? lib.fakeHash,
14 outputHashAlgo ? null,
15 }:
16
17 stdenv.mkDerivation {
18 name = "fossil-archive" + (lib.optionalString (name != null) "-${name}");
19 builder = ./builder.sh;
20 nativeBuildInputs = [
21 fossil
22 cacert
23 ];
24
25 # Envvar docs are hard to find. A link for the future:
26 # https://www.fossil-scm.org/index.html/doc/trunk/www/env-opts.md
27 impureEnvVars = [ "http_proxy" ];
28
29 inherit outputHash outputHashAlgo;
30 outputHashMode = "recursive";
31
32 inherit url rev;
33 preferLocalBuild = true;
34 }
35)