mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
26 lines
448 B
Nix
26 lines
448 B
Nix
{stdenvNoCC, darcs, cacert, lib}:
|
|
|
|
lib.makeOverridable (
|
|
{ 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;
|
|
|
|
inherit url rev context name;
|
|
}
|
|
)
|