2017-04-26 21:54:15 +02:00
|
|
|
{stdenv, darcs, nix, cacert}:
|
|
|
|
|
|
|
|
{url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:
|
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
|
2006-01-30 12:18:38 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "fetchdarcs";
|
2017-06-03 21:35:37 +02:00
|
|
|
NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
2006-01-30 12:18:38 +01:00
|
|
|
builder = ./builder.sh;
|
2009-05-13 21:02:23 +02:00
|
|
|
buildInputs = [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;
|
|
|
|
|
2014-06-28 20:33:28 +02:00
|
|
|
inherit url rev context;
|
2006-01-30 12:18:38 +01:00
|
|
|
}
|