git.iko.soy/typeable/nixpkgs
on master help sign in
build-fhs-userenv-bubblewrap: add folders comment
commit12c2eae2c50f81ab6207c224dbe7d71a529db4ec authorLuigi Sartor Piucco <luigipiucco@gmail.com> dateTue 23 Feb 2021, 11:44 (6 years ago) parentf9d9740
1 file changed+7
pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix+7
pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix+7
@@ -138,6 +138,13 @@ let
138138 ${lib.optionalString unshareCgroup "--unshare-cgroup"}
139139 --die-with-parent
140140 --ro-bind /nix /nix
141+ # Our glibc will look for the cache in its own path in `/nix/store`.
142+ # As such, we need a cache to exist there, because pressure-vessel
143+ # depends on the existence of an ld cache. However, adding one
144+ # globally proved to be a bad idea (see #100655), the solution we
145+ # settled on being mounting one via bwrap.
146+ # Also, the cache needs to go to both 32 and 64 bit glibcs, for games
147+ # of both architectures to work.
141148 --tmpfs ${glibc}/etc \
142149 --symlink /etc/ld.so.conf ${glibc}/etc/ld.so.conf \
143150 --symlink /etc/ld.so.cache ${glibc}/etc/ld.so.cache \