[Nix-dev] questions on nix trickery

Kosyrev Serge _deepfire at feelingofgreen.ru
Mon May 16 19:36:51 CEST 2016


Alan Belew <spacehitchhiker42 at gmail.com> writes:
> I have a few questions on the trickery nix uses in its package system.
>
> 1. whenever nix builds a package from source, how does it make sure
> all the outputs end up in a folder in the store?
>
> 2. how does nix make sure that programs can find the libraries they
> need? from what i read i got the impression that nix puts symlinks to
> the store in lib /lib or /usr/lib directories, but i can't find
> anything like that on my os.

Adam, these questions sound like something that can be answered by the
Nix Pills series by Luca Bruno, in particular:

  - http://lethalman.blogspot.ru/2014/07/nix-pill-7-working-derivation.html
  - http://lethalman.blogspot.ru/2014/08/nix-pill-8-generic-builders.html
  - http://lethalman.blogspot.ru/2014/08/nix-pill-9-automatic-runtime.html

-- 
с уважениeм / respectfully,
Косырев Сергей


More information about the nix-dev mailing list