Open clefru opened 1 year ago
You should be able to bind-mount the outputs as rw via extraBwrapArgs.
I guess we could also just mount the Nix store rw as it should be ro at a lower level anyways.
This also makes it so if you want to have a persistent partition in /nix/persist
for impermanence any programs that use this FHS function will not work properly (e.g.: Steam errors out due to RO filesystem)
Describe the bug
buildFHSEnv
mounts /nix/store read-only, so we can't use an FHS environment inside a derivation to produce an output inside /nix/store. This is the case, for instance, when running a proprietary installer that requires an FHS environment.buildFHSEnvChroot
still works though.Please see https://github.com/clefru/nur-packages/blob/master/pkgs/ib-tws/default.nix#L28 for my main motivation.
Steps To Reproduce
Expected behavior
buildFHSEnv
should support installers (used inside a derivation builder script) that require an FHS environment.Notify maintainers
@Atemu
Metadata