nixpkgs/pkgs/build-support/fetchdarcs/builder.sh
Marc Weber de2c320294 hash check removed because the nix system does it..
svn path=/nixpkgs/trunk/; revision=9279
2007-09-07 18:59:30 +00:00

17 lines
303 B
Bash

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 --partial $tagflags "$url" "$out"
# remove metadata, because it can change
rm -rf "$out/_darcs"
stopNest