>> I have some odd hacks that do not work when the setting `build-use-chroot' 
>> is true.
>> Is it possible to disable this setting with a command line switch on the 
>> nix-build invocation?
>
>Yes, "nix-build --option build-use-chroot false".  However this doesn't work 
>when you're building through the Nix daemon.

Ensuring you don't use Nix daemon is done from root as "export NIX_REMOTE= "

By the way, isn't simply editing /etc/nix.conf build-chroot-dirs (non-NixOS)
or nix.chrootDirs (NixOS) enough for your goals?



_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to