Packages can share dependencies in NixOS, and often do for packages in the same version of nixpkgs. It’s not quite the same as statically linking everything, but it basically gives you the perks of that with fewer downsides and other advantages.
Comment on [deleted]
kinttach@lemm.ee 1 year ago
Is that basically the premise of NixOS?
Chobbes@lemmy.world 1 year ago
BareMetalSkirt@lemmy.kya.moe 1 year ago
Not at all, each package has a regular dependency tree like on any other distro. The difference is that each package can see a different subset of dependencies so you can have multiple versions of a library. What would be a version conflict on most distros here just means you have two different libsomething side by side. The /nix/store on my desktop is roughly the same size as my Gentoo /usr.