* fetchgit and nix-prefetch-git

svn path=/nixpkgs/trunk/; revision=16035
This commit is contained in:
Rob Vermaas
2009-06-24 12:48:01 +00:00
parent ef83c754f6
commit 205fb0c87e
4 changed files with 106 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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
find $out -name .git\* | xargs rm -rf
stopNest