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

Yury G. Kudryashov urkud.urkud at gmail.com
Tue Jan 31 08:51:46 CET 2012


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
Just create /nix/store/by-hash/first-5-digits/next-5-digits/remaining-
digits/number and hardlink every file to this path. Here <number> will be 0 
for most files, and increase only in case of file collisions.
-- 
Yury G. Kudryashov,
mailto: urkud at mccme.ru



More information about the nix-dev mailing list