depot/pkgs/build-support/fetchfossil/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

26 lines
634 B
Nix

{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];
# 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;
}
)