applying patches provided by griswold

svn path=/nixpkgs/trunk/; revision=19707
This commit is contained in:
Rob Vermaas
2010-01-27 12:12:35 +00:00
parent 77bf39bf82
commit 13417770a3
11 changed files with 221 additions and 11 deletions
+4 -2
View File
@@ -7,7 +7,9 @@ if test -n "$rev"; then
cd $out
git checkout $rev
fi
find $out -name .git\* | xargs rm -rf
if test -z "$leaveDotGit"; then
find $out -name .git\* | xargs rm -rf
fi
stopNest
+2 -2
View File
@@ -1,5 +1,5 @@
{stdenv, git}:
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
{url, rev ? "HEAD", md5 ? "", sha256 ? "", leaveDotGit ? false }:
/* NOTE:
fetchgit has one problem: git fetch only works for refs.
@@ -32,7 +32,7 @@ stdenv.mkDerivation {
outputHashMode = "recursive";
outputHash = if sha256 == "" then md5 else sha256;
inherit url rev;
inherit url rev leaveDotGit;
impureEnvVars = [
# We borrow these environment variables from the caller to allow