diff options
author | Matthew Mazzanti <matthew.mazzanti@gmail.com> | 2021-03-11 08:27:14 -0500 |
---|---|---|
committer | Matthew Mazzanti <matthew.mazzanti@gmail.com> | 2021-03-11 08:50:15 -0500 |
commit | eb268eabad570990f9b5e271b64d26b9decdacdd (patch) | |
tree | 3fb50662a3bf5710bc1139cb3b7eb721e7f06253 /pkgs/build-support/build-fhs-userenv-bubblewrap | |
parent | 867edccac84b4fd41b05e6469fe868fbc56fab01 (diff) | |
download | nixpkgs-eb268eabad570990f9b5e271b64d26b9decdacdd.tar nixpkgs-eb268eabad570990f9b5e271b64d26b9decdacdd.tar.gz nixpkgs-eb268eabad570990f9b5e271b64d26b9decdacdd.tar.bz2 nixpkgs-eb268eabad570990f9b5e271b64d26b9decdacdd.tar.lz nixpkgs-eb268eabad570990f9b5e271b64d26b9decdacdd.tar.xz nixpkgs-eb268eabad570990f9b5e271b64d26b9decdacdd.tar.zst nixpkgs-eb268eabad570990f9b5e271b64d26b9decdacdd.zip |
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.
Diffstat (limited to 'pkgs/build-support/build-fhs-userenv-bubblewrap')
-rw-r--r-- | pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix index 3985eca4243..1911d08d2a1 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") |