Added Idris and updated fetchdarcs.

svn path=/nixpkgs/trunk/; revision=15595
This commit is contained in:
Andres Löh
2009-05-13 19:02:23 +00:00
parent 1ffa8f0c17
commit 677f91a6d1
6 changed files with 640 additions and 10 deletions

View File

@@ -5,11 +5,14 @@ tagflags=""
if test -n "$tag"; then
tagtext="(tag $tag) "
tagflags="--tag=$tag"
elif test -n "$context"; then
tagtext="(context) "
tagflags="--context=$context"
fi
header "getting $url $partial ${tagtext} into $out"
darcs get --no-pristine-tree $partial $tagflags "$url" "$out"
darcs get --lazy --ephemeral $tagflags "$url" "$out"
# remove metadata, because it can change
rm -rf "$out/_darcs"

View File

@@ -1,17 +1,13 @@
{stdenv, darcs, nix}: {url, tag ? null, md5, partial ? true}:
{stdenv, darcs, nix}: {url, tag ? null, context ? null, md5 ? "", sha256 ? ""}:
stdenv.mkDerivation {
name = "fetchdarcs";
builder = ./builder.sh;
buildInputs = [darcs nix];
partial = if partial then "--partial" else "";
buildInputs = [darcs];
# Nix <= 0.7 compatibility.
id = md5;
outputHashAlgo = "md5";
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
outputHashMode = "recursive";
outputHash = md5;
outputHash = if sha256 == "" then md5 else sha256;
inherit url tag;
inherit url tag context;
}