diff --git a/pkgs/build-support/compress-drv/default.nix b/pkgs/build-support/compress-drv/default.nix index b164fa76ada5..f1ace8c7a7aa 100644 --- a/pkgs/build-support/compress-drv/default.nix +++ b/pkgs/build-support/compress-drv/default.nix @@ -84,8 +84,7 @@ runCommand "${drv.name}-compressed" '' mkdir $out - # cannot use lndir here, because it also symlinks directories, - # which we do not need; we only need to symlink files. + # cannot use lndir here, because it stop recursing at symlinks that point to directories (cd ${drv}; find -L -type d -exec mkdir -p $out/{} ';') (cd ${drv}; find -L -type f -exec ln -s ${drv}/{} $out/{} ';')