Open hgl opened 1 year ago
@yanalunaterra After checking chrootenv's source code I realized the cause was that I had mounted something on /host
. Maybe chrootenv could create some flag file to make the detection a little more resilient? The current error message is a little cryptic to debug.
Describe the bug
When using direnv and
pkgs.buildFHSUserEnv
, it fails withI traced the error to chrootenv
Steps To Reproduce
Run
Expected behavior
No error
Screenshots
Additional context
I think this is the code causing this error: https://github.com/NixOS/nixpkgs/blob/492d2256f4ad1450da8861063e97af2d0c0f94b9/pkgs/build-support/build-fhs-userenv/chrootenv/src/chrootenv.c#L152
I use Nixpkgs unstable commit 72d8853228c9758820c39b8659415b6d89279493 I use this flake.nix with direnv as a test case
Notify maintainers
@yanalunaterra
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.