1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

nix develop: Set personality

This makes 'nix develop' set the Linux personality in the same way
that the actual build does, allowing a command like 'nix develop
nix#devShells.i686-linux.default' on x86_64-linux to work correctly.
This commit is contained in:
Eelco Dolstra 2022-12-23 16:28:26 +01:00
parent c9eee5a84d
commit c164d304f3
8 changed files with 85 additions and 34 deletions

View file

@ -25,3 +25,9 @@
$ nix-build glibc^dev`
```
does already.
* On Linux, `nix develop` now sets the
[*personality*](https://man7.org/linux/man-pages/man2/personality.2.html)
for the development shell in the same way as the actual build of the
derivation. This makes shells for `i686-linux` derivations work
correctly on `x86_64-linux`.