mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
19 lines
409 B
Nix
19 lines
409 B
Nix
{stdenvNoCC, darcs, cacert}:
|
|
|
|
{url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:
|
|
|
|
if md5 != "" then
|
|
throw "fetchdarcs does not support md5 anymore, please use sha256"
|
|
else
|
|
stdenvNoCC.mkDerivation {
|
|
name = "fetchdarcs";
|
|
builder = ./builder.sh;
|
|
nativeBuildInputs = [cacert darcs];
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = sha256;
|
|
|
|
inherit url rev context;
|
|
}
|