From eb268eabad570990f9b5e271b64d26b9decdacdd Mon Sep 17 00:00:00 2001 From: Matthew Mazzanti Date: Thu, 11 Mar 2021 08:27:14 -0500 Subject: [PATCH] fhs-userenv-bubblewrap: Add store path to readlink Commit df4761 added a call to readlink, which fails if it is not in the user's path when run. Updated the readlink call to pull from the coreutils store path directly. --- pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix index 3985eca42433..1911d08d2a1c 100644 --- a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix +++ b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix @@ -95,7 +95,7 @@ let if [[ $path == '/etc' ]]; then : elif [[ -L $i ]]; then - symlinks+=(--symlink "$(readlink "$i")" "$path") + symlinks+=(--symlink "$(${coreutils}/bin/readlink "$i")" "$path") blacklist+=("$path") else ro_mounts+=(--ro-bind "$i" "$path")