summary refs log tree commit diff
path: root/pkgs/build-support/fetchdarcs/builder.sh
blob: 7214eda426686ccdce714aa3de6a989aa23645dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
source $stdenv/setup

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

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

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

stopNest