7 ms·
> I thought this would bring some space savings, because files that are not binary code should be largely the same. Those ternary blobs tend to be cross-platfo
by TOGoS 9mo ago
> I thought this would bring some space savings, because files that are not binary code should be largely the same.
Those ternary blobs tend to be cross-platform, I hear.
- poelzi 9mo agoThe nix store can do hard linking for the hashsum files. The nix store is read-only so you don't get modifications in general - does not really matter for boot disks, but in general.
- mikepurvis 9mo agoYou have to do extra work to get the hardlink deduplication in the store though: https://nix.dev/manual/nix/2.20/command-ref/nix-store/optimise https://nix.dev/manual/nix/2.20/command-ref/nix-store/optimi... Unlike in FHS distros where you get some of the separation for free with usr/lib vs usr/share, most nix packages don't have separate store paths for binary vs non-binary files. At most you'll get the headers and build scripts split off in a separate dev path.