summary refs log blame commit diff
path: root/pkgs/build-support/fetchdarcs/builder.sh
blob: 3ea36f57f99d02fc1b4caeb928699026b16eb4e0 (plain) (tree)





















                                                    
source $stdenv/setup

tagtext=""
tagflags=""
if test -n "$tag"; then
    tagtext="(tag $tag) "
    tagflags="--tag=$tag"
fi

header "getting $url ${tagtext}into $out"

darcs get --no-pristine-tree $tagflags "$url" "$out"
# remove metadata, because it can change
rm -rf "$out/_darcs"

actual=$(nix-hash $out)
if test "$actual" != "$outputHash"; then
    echo "hash is $actual, expected $outputHash" >&2
    exit 1
fi

stopNest