mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
de2c320294
svn path=/nixpkgs/trunk/; revision=9279
16 lines
303 B
Bash
16 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
|