nixpkgs/pkgs
Michal Sojka b681ad3254 buildFHSUserEnv: Allow having custom /opt in the FHS environment
buildFHSUserEnv is meant primarily for running 3rd-party software
which is difficult to patch for NixOS. Such software is often built to
run from /opt. Currently, running such a software from FHS environment
is difficult for two reasons:

1. If the 3rd-party software is put into the Nix store via a simple
   derivation (with e.g. installPhase = "dpkg-deb -x $src $out"), the
   content of /opt directory of that derivation does not appear in the
   FHSEnv even if the derivation is specified in targetPkgs. This is
   why we change env.nix.

2. If using buildFHSUserEnvChroot and the host system has the /opt
   directory, it always gets bind-mounted to the FHSEnv even if some
   targetPkgs contain /opt (NB buildFHSUserEnvBubblewrap does not have
   this problem). If that directory is not accessible for non-root
   users (which is what docker's containerd does with /opt :-(), the
   user running the FHSEnv cannot use it.

   With the change in chrootenv.c, /opt is not bind-mounted to the
   container, but instead created as user-modifiable symlink to
   /host/opt (see the init attribute in
   build-fhs-userenv/default.nix). If needed, the user can remove this
   symlink and create an empty /opt directory which is under his/her
   control.
2021-06-27 08:33:51 +02:00
..
applications Merge pull request #127522 from rytone/ocio2 2021-06-25 10:39:43 -04:00
build-support buildFHSUserEnv: Allow having custom /opt in the FHS environment 2021-06-27 08:33:51 +02:00
common-updater
data Merge pull request #127947 from romildo/upd.whitesur-gtk-theme 2021-06-25 14:36:19 +02:00
desktops libwnck: make 3.36.0 default 2021-06-24 18:04:30 +03:00
development Merge pull request #127999 from dotlambda/ndms2-client-init 2021-06-25 18:47:32 +02:00
games
misc vscode-extensions.vadimcn.vscode-lldb: 1.6.4 -> 1.6.5 2021-06-25 14:50:10 +08:00
os-specific Merge pull request #124059 from r-ryantm/auto-update/hdparm 2021-06-25 12:34:18 +02:00
pkgs-lib
servers Merge pull request #127999 from dotlambda/ndms2-client-init 2021-06-25 18:47:32 +02:00
shells
stdenv
test tests.texlive.texdoc: init 2021-06-23 22:18:54 -04:00
tools Merge pull request #128109 from mdlayher/mdl-corerad 2021-06-25 16:54:34 +02:00
top-level Merge pull request #127999 from dotlambda/ndms2-client-init 2021-06-25 18:47:32 +02:00