From 1a68f81db46fec44523ca1be57aa0c0ae830e1d3 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Sat, 28 Mar 2015 13:13:18 -0700 Subject: [PATCH] fetchgitlocal: don't force copying the whole source directory into the store.. --- pkgs/build-support/fetchgitlocal/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/fetchgitlocal/default.nix b/pkgs/build-support/fetchgitlocal/default.nix index 24568667751..04e6aafc8a1 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 ''