2017-04-26 20:54:15 +01:00
|
|
|
{stdenv, darcs, nix, cacert}:
|
|
|
|
|
|
|
|
{url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:
|
2006-01-30 11:18:38 +00:00
|
|
|
|
2017-03-13 12:31:44 +00:00
|
|
|
if md5 != "" then
|
|
|
|
throw "fetchdarcs does not support md5 anymore, please use sha256"
|
|
|
|
else
|
2006-01-30 11:18:38 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "fetchdarcs";
|
|
|
|
builder = ./builder.sh;
|
2017-12-27 20:26:36 +00:00
|
|
|
buildInputs = [cacert darcs];
|
2006-01-30 11:18:38 +00:00
|
|
|
|
2017-03-13 12:31:44 +00:00
|
|
|
outputHashAlgo = "sha256";
|
2006-01-30 11:18:38 +00:00
|
|
|
outputHashMode = "recursive";
|
2017-03-13 12:31:44 +00:00
|
|
|
outputHash = sha256;
|
|
|
|
|
2014-06-28 19:33:28 +01:00
|
|
|
inherit url rev context;
|
2006-01-30 11:18:38 +00:00
|
|
|
}
|