[Nix-dev] [Nix-commits] SVN commit: nix - r31934 - in nixpkgs/trunk/pkgs: tools/system/hardlink top-level

Shea Levy shea at shealevy.com
Tue Jan 31 03:35:44 CET 2012


On 1/30/12 7:10 AM, Eelco Dolstra wrote:
> Hi,
>
> On 30/01/12 12:40, Peter Simons wrote:
>
>> IHMO, this program should be run by the default builder after $out has been set
>> up, to remove redundancy in the generated closures.
> No, Nix should do that after the build has completed.  If the Nix DB were to
> store the cryptographic hash of every regular file in the store (with an index
> from hashes to paths), it would be very easy to do this on the fly.  And
> "nix-store --optimise" would become a no-op.
>

As long as there's an actual file comparison after hashes match... I'd 
hate for a collision to cause a file to be completely wrong!


More information about the nix-dev mailing list