nixpkgs/pkgs/build-support/fetchdarcs/default.nix

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

26 lines
448 B
Nix
Raw Normal View History

{stdenvNoCC, darcs, cacert, lib}:
lib.makeOverridable (
2022-12-05 20:49:37 +01:00
{ url
, rev ? null
, context ? null
, md5 ? ""
, sha256 ? ""
, name ? "fetchdarcs"
}:
if md5 != "" then
throw "fetchdarcs does not support md5 anymore, please use sha256"
else
stdenvNoCC.mkDerivation {
builder = ./builder.sh;
nativeBuildInputs = [cacert darcs];
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = sha256;
2022-12-05 20:49:37 +01:00
inherit url rev context name;
}
)