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