From 0f488afad28f057ce3caf771b21f379d1dcd00bb Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 19 Mar 2022 09:44:25 +0400 Subject: [PATCH] build-fhs-userenv-bubblewrap: symlink share directory when there's no need to merge There's no need to copy files if the directory won't be merged with multilib one leading to unnecessary increase of closure size --- pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix b/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix index d0f88df44537..7d45e954d9ea 100644 --- a/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix +++ b/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix @@ -172,7 +172,7 @@ let chmod -R 755 share cp -rLTf ${staticUsrProfileTarget}/share share else - cp -rLf ${staticUsrProfileTarget}/share share + cp -rsHf ${staticUsrProfileTarget}/share share fi fi for i in bin sbin include; do