nixpkgs/pkgs/build-support/fetchgit/builder.sh
Rob Vermaas 13417770a3 applying patches provided by griswold
svn path=/nixpkgs/trunk/; revision=19707
2010-01-27 12:12:35 +00:00

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