[Nix-dev] Re: Accidental store paths collisions
Lluís Batlle
viriketo at gmail.com
Wed Sep 30 15:46:09 CEST 2009
2009/9/30 Ludovic Courtès <ludo at gnu.org>:
> Hi,
>
> Peter Simons <simons at cryp.to> writes:
>
>> > I think the probability of an accidental collision between any two
>> > store paths (regardless of the ‘stdenv.system’ value) is that of an
>> > accidental collision between any two SHA256 hashes of two different
>> > inputs.
>
> [...]
>
>> The question is: do the inputs differ when the same expression is built
>> on two different systems, i.e. MacOS X and Linux?
>
> Yes, at least one input differs, namely ‘stdenv.system’.
I didn't recall the 'system' attribute is passed to any stdenv
derivation through stdenv.mkDerivation. Also for builderDefs?
More information about the nix-dev
mailing list