diff options
author | Eric Seidel <gridaphobe@gmail.com> | 2015-03-28 13:13:18 -0700 |
---|---|---|
committer | Eric Seidel <gridaphobe@gmail.com> | 2015-03-28 13:13:18 -0700 |
commit | 1a68f81db46fec44523ca1be57aa0c0ae830e1d3 (patch) | |
tree | 8ceb9562b821a71ef9d4bbb6510cdadecfe52cfe /pkgs/build-support/fetchgitlocal | |
parent | da73e45cd0e8b07602097702d4c9ed19fe6e2d74 (diff) |
fetchgitlocal: don't force copying the whole source directory into the store..
Diffstat (limited to 'pkgs/build-support/fetchgitlocal')
-rw-r--r-- | pkgs/build-support/fetchgitlocal/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgitlocal/default.nix b/pkgs/build-support/fetchgitlocal/default.nix index 2456866775170..04e6aafc8a1b0 100644 --- a/pkgs/build-support/fetchgitlocal/default.nix +++ b/pkgs/build-support/fetchgitlocal/default.nix @@ -1,10 +1,10 @@ { runCommand, git }: src: runCommand "local-git-export" {} '' - cd ${src} + cd ${toString src} mkdir -p "$out" for file in $(${git}/bin/git ls-files); do mkdir -p "$out/$(dirname $file)" - cp -d $file "$out/$file" + cp -d $file "$out/$file" || true # don't fail when trying to copy a directory done '' |