[Nix-dev] fixed-output derivation that *also* depend on (some of) its inputs?

Vladimír Čunát vcunat at gmail.com
Sat Sep 20 21:26:25 CEST 2014


On 09/20/2014 09:11 PM, Bjørn Forsman wrote:
> No, fetchurl wont re-download if you change url. You have to update
> the hash to force a re-download. That's by design, because changing
> the mirror shouldn't cause a mass rebuild. But my realization was that
> we could have made it depend on the*basename*  of url and still
> prevent a changing mirror to be mass-rebuild.
>
> For fetchurl this behaviour (ignoring inputs) is just a minor
> annoyance, but for packaging a grails app it completely breaks down.

When I change the basename (and leave the hash the same), fetchurl 
*will* re-download, because the output name of the file does change. (It 
will fail, so I see little point anyway.)

Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3251 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140920/7f9df495/attachment.bin 


More information about the nix-dev mailing list