mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
f57185db95
fixes #4491
17 lines
384 B
Nix
17 lines
384 B
Nix
{stdenv, darcs, nix}: {url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:
|
|
|
|
if md5 != "" then
|
|
throw "fetchdarcs does not support md5 anymore, please use sha256"
|
|
else
|
|
stdenv.mkDerivation {
|
|
name = "fetchdarcs";
|
|
builder = ./builder.sh;
|
|
buildInputs = [darcs];
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = sha256;
|
|
|
|
inherit url rev context;
|
|
}
|