depot/third_party/nixpkgs/pkgs/build-support/fetchfossil/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02: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;
}
)