mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
677f91a6d1
svn path=/nixpkgs/trunk/; revision=15595
20 lines
392 B
Bash
20 lines
392 B
Bash
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 --ephemeral $tagflags "$url" "$out"
|
|
# remove metadata, because it can change
|
|
rm -rf "$out/_darcs"
|
|
|
|
stopNest
|