mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
c01f509e44
if theres a source $stdenv then this is needed for structuredAttrs
21 lines
427 B
Bash
21 lines
427 B
Bash
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
|
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
|