nix-cage
nix-cage copied to clipboard
nix pkgs.buildFHSUserEnv support
nix-shell has a pretty awesome ability to create a FHS compatible environment. However the shell hook current breaks nix-cage.
IE the following shell.nix
:
# shell.nix
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "simple-x11-env";
targetPkgs = pkgs: (with pkgs; [
python3
]);
multiPkgs = pkgs: (with pkgs; [
python3
]);
runScript = "bash";
}).env
Thank you for the report.
I don't know much about buildFHSUserEnv
, but it looks like it creates some kind of chroot.
Will try to dive more deeply into this