forked from mirrors/nixpkgs
c59fb90f62
svn path=/nixpkgs/trunk/; revision=16047
14 lines
206 B
Bash
14 lines
206 B
Bash
source $stdenv/setup
|
|
|
|
header "exporting $url (rev $rev) into $out"
|
|
|
|
git clone --depth 1 "$url" $out
|
|
if test -n "$rev"; then
|
|
cd $out
|
|
git checkout $rev
|
|
fi
|
|
find $out -name .git\* | xargs rm -rf
|
|
|
|
stopNest
|
|
|