1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/build-support/fetchfossil/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
634 B
Nix
Raw Normal View History

2023-02-06 20:49:02 +00:00
{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;
}
)