2022-02-10 14:40:58 +01:00
|
|
|
{stdenvNoCC, darcs, cacert, lib}:
|
2017-04-26 21:54:15 +02:00
|
|
|
|
2022-02-10 14:40:58 +01:00
|
|
|
lib.makeOverridable (
|
2022-12-05 20:49:37 +01:00
|
|
|
{ url
|
|
|
|
, rev ? null
|
|
|
|
, context ? null
|
|
|
|
, md5 ? ""
|
|
|
|
, sha256 ? ""
|
|
|
|
, name ? "fetchdarcs"
|
|
|
|
}:
|
2006-01-30 12:18:38 +01:00
|
|
|
|
2017-03-13 13:31:44 +01:00
|
|
|
if md5 != "" then
|
|
|
|
throw "fetchdarcs does not support md5 anymore, please use sha256"
|
|
|
|
else
|
2018-01-10 00:38:19 +01:00
|
|
|
stdenvNoCC.mkDerivation {
|
2006-01-30 12:18:38 +01:00
|
|
|
builder = ./builder.sh;
|
2018-01-14 20:18:27 +01:00
|
|
|
nativeBuildInputs = [cacert darcs];
|
2006-01-30 12:18:38 +01:00
|
|
|
|
2017-03-13 13:31:44 +01:00
|
|
|
outputHashAlgo = "sha256";
|
2006-01-30 12:18:38 +01:00
|
|
|
outputHashMode = "recursive";
|
2017-03-13 13:31:44 +01:00
|
|
|
outputHash = sha256;
|
|
|
|
|
2022-12-05 20:49:37 +01:00
|
|
|
inherit url rev context name;
|
2006-01-30 12:18:38 +01:00
|
|
|
}
|
2022-02-10 14:40:58 +01:00
|
|
|
)
|