[Nix-dev] nix-store deriver vs outputs

Kirill Elagin kirelagin at gmail.com
Sun May 25 16:15:20 CEST 2014


I think I got it. That's due to the fact that it's perfectly fine in nix
for different derivations to have the same output.
In my case, the derivation that originally produced the output was
garbage-collected. But the output still
lists it as its deriver, even though these days if I run `nix-env -i
pavucontrol` _the same_ output
will be produced by another derivation.

So, again, “deriver” refers to the derivation that actually made the output
appear in the store.


--
Кирилл Елагин


On Sun, May 25, 2014 at 10:39 AM, Kirill Elagin <kirelagin at gmail.com> wrote:

> Hi,
>
> I'm not sure I'm getting the terms right, but I believe that “output” and
> “deriver” are inverses of each other. But something seems to be wrong.
>
> Here is an example:
>
> ~~~~~~~~~~~~~
> % nix-store -q --deriver ~/.nix-profile/bin/pavucontrol
> /nix/store/blxypgwcwypr03q661gwqclz2hl0q8p1-pavucontrol-2.0.drv
>
> % stat /nix/store/blxypgwcwypr03q661gwqclz2hl0q8p1-pavucontrol-2.0.drv
> stat: cannot stat
> ‘/nix/store/blxypgwcwypr03q661gwqclz2hl0q8p1-pavucontrol-2.0.drv’: No such
> file or directory
>
> % readlink -f ~/.nix-profile/bin/pavucontrol
> /nix/store/sj1zg5pvx0rx3jx7fi3lhsxaf8rxrzf5-pavucontrol-2.0/bin/pavucontrol
>
> % nix-store -q --outputs
> /nix/store/yh0gqhvxz5r3qffvznlg8hxy6ipx6mka-pavucontrol-2.0.drv
> /nix/store/sj1zg5pvx0rx3jx7fi3lhsxaf8rxrzf5-pavucontrol-2.0
> ~~~~~~~~~~~~~~~~~
>
> What am I missing?
>
>
> --
> Кирилл Елагин
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140525/2ca0a5cf/attachment-0001.html 


More information about the nix-dev mailing list