about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-01-07 11:03:57 +0000
committerPeter Simons <simons@cryp.to>2011-01-07 11:03:57 +0000
commitf989b670d608e1da37bfb94e554c4d315ae83b86 (patch)
tree16cb12f65d30dd8d42987340cdd04729215df949 /pkgs
parent167f1854117d0dc636d75c001dcba3376a4a3ec4 (diff)
pkgs/applications/version-management/git-and-tools/git: fixed the build to deal with names that contain whitespace
The "find -print | while read" loop failed to deal with paths that contain
whitespace. Instead, we now use a similar construct that's based on globbing.

svn path=/nixpkgs/trunk/; revision=25454
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/version-management/git-and-tools/git/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/git/default.nix b/pkgs/applications/version-management/git-and-tools/git/default.nix
index 5d9b92f8cb104..228f0c209433f 100644
--- a/pkgs/applications/version-management/git-and-tools/git/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/git/default.nix
@@ -113,7 +113,9 @@ stdenv.mkDerivation rec {
    # This reduces the size of $out from 115MB down to 13MB on x86_64-linux!
    + ''#
       declare -A seen
-      find $out -type f | while read f; do
+      shopt -s globstar
+      for f in "$out/"**; do
+        test -f "$f" || continue
         sum=$(md5sum "$f");
         sum=''\${sum/ */}
         if [ -z "''\${seen["$sum"]}" ]; then