[Nix-dev] unequal build hash

Harmen harmen at lijzij.de
Fri Jul 7 10:28:13 CEST 2017


On Fri, Jul 07, 2017 at 07:59:46AM +0200, Vladimír Čunát wrote:
> On 07/06/2017 07:35 PM, Harmen via nix-dev wrote:
> > Does that makes sense? Did I forget a 'name' somewhere?
> 
> When you use things like
>   src = ./.;
> the directory gets copied into nix store and the resulting path's name
> is based on the name of the directory.

I see. That was rather unobvious and unexpected to me.

Anyone knows a (creative) way around that? I would like to have it build code
from ./., but where the name of the directory you happened to have checked the
project out in doesn't matter (because then the binary cache works).

Thanks,
Harmen
 

> 
> --Vladimir


More information about the nix-dev mailing list