Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix pkgs.buildFHSUserEnv support #9

Open
georgyo opened this issue Sep 24, 2021 · 1 comment
Open

nix pkgs.buildFHSUserEnv support #9

georgyo opened this issue Sep 24, 2021 · 1 comment

Comments

@georgyo
Copy link

georgyo commented Sep 24, 2021

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
@corpix
Copy link
Owner

corpix commented Sep 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants