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

Bjørn Forsman bjorn.forsman at gmail.com
Sat Sep 20 21:45:29 CEST 2014


On 20 September 2014 21:21, Shea Levy <shea at shealevy.com> wrote:
> fetchurl does depend on the base name, it's the nixos tarball mirror that
> doesn't

Ah, I didn't know that. I did a quick test now, which verified your statement.

When changing the url, but keeping the hash, fetchurl re-downloads. A
new store path is created with *new name*, but *old file contents*.

On 20 September 2014 21:26, Vladimír Čunát <vcunat at gmail.com> wrote:
[...]
> 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.)

Actually, it doesn't fail. (At least in my test.)


More information about the nix-dev mailing list