summary refs log blame commit diff
path: root/pkgs/build-support/fetchdarcs/builder.sh
blob: efff5ff5ebf9705532a77508dc242226ba232eb8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                         


                                 

  
                                                   
 
                                        


                                        
        
source $stdenv/setup

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

stopNest