(no title)
kqbx | 3 years ago
Does that mean that Guix just exports the required environment variables in the shell rather than wrapping each executable with a bash script [1] like nix does?
If yes, that's great, because the wrapper approach feels like an ugly hack. I found some executables on my nixos installation that are behind three layers of wrappers, and that's probably not the maximum.
I guess nix could improve this situation by making `wrapProgram` smarter (if the executable to be wrapped is already a wrapper, merge the inner and outer wrapper), but even single-layer wrappers are annoying, and I imagine they have some performance impact.
EDIT:
I forgot about nix-shell, which does actually export the right environment variables directly to the shell.
[1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-supp...
yyyk2|3 years ago
pxc|3 years ago
kqbx|3 years ago
I haven't used nixos in a while and I got confused about this because to install python packages globally I used `python3.withPackages` and that does use the wrappers.