2008-03-06 03:46:29 +01:00
|
|
|
{stdenv, darcs, nix}: {url, tag ? null, md5, partial ? true}:
|
2006-01-30 12:18:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "fetchdarcs";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
buildInputs = [darcs nix];
|
2008-03-06 03:46:29 +01:00
|
|
|
partial = if partial then "--partial" else "";
|
2006-01-30 12:18:38 +01:00
|
|
|
|
|
|
|
# Nix <= 0.7 compatibility.
|
|
|
|
id = md5;
|
|
|
|
|
|
|
|
outputHashAlgo = "md5";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = md5;
|
|
|
|
|
|
|
|
inherit url tag;
|
|
|
|
}
|