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



                    


                         


                                 

  
                                                   
 
                                        


                                        
        
source $stdenv/setup

tagtext=""
tagflags=""
if test -n "$rev"; then
    tagtext="(tag $rev) "
    tagflags="--tag=$rev"
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