mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
13417770a3
svn path=/nixpkgs/trunk/; revision=19707
16 lines
235 B
Bash
16 lines
235 B
Bash
source $stdenv/setup
|
|
|
|
header "exporting $url (rev $rev) into $out"
|
|
|
|
git clone "$url" $out
|
|
if test -n "$rev"; then
|
|
cd $out
|
|
git checkout $rev
|
|
fi
|
|
|
|
if test -z "$leaveDotGit"; then
|
|
find $out -name .git\* | xargs rm -rf
|
|
fi
|
|
|
|
stopNest
|