this post was submitted on 21 Jun 2023
5 points (100.0% liked)
nixos
46 readers
1 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That's not quite right. They will be installed (chances are you have coreutils installed right now) but only as in "it's in the Nix store"; they won't automatically appear in your PATH or other shared state directories. You'd have to explicitly install the
coreutils
package for that to happen. I do that on my mac for example because I want GNU coreutils rather than macOS' ancient modified BSD ones but, again, that's an explicit choice.Some binaries may internally be wrapped to directly use Nixpkgs' coreutils rather than the system ones. One example I can think of is git-annex which checks for coreutils features at build time. Giving it different coreutils at runtime could cause trouble, so it always uses Nixpkgs coreutils via a wrapper.
That doesn't mean Nixpkgs' coreutils are "installed" into your system though, it's just prepended to git-annex' PATH. That's the beauty of Nix.