Sat Nov 11 15:59:10 EST 2017
Building a package
nix-shell -p pkgconfig zlib
pkg-config --cflags zlib
What roots are the -dev packages stored in?
Seems they are not rooted by default; nix-shell needs "--add-root".
Not sure how this works since docs is missing.
An active nix-shell does act as a root, so this is consistent.
In practice: don't do unnecessary gc.
Next: try this out on a trivial hello world C program.
- github repo with hello.c source code
- gcc, make, ...
Then look at what comes out: the drv file and the closure.