[Nix-dev] Debugging nixpkgs

Konrad Hinsen konrad.hinsen at fastmail.net
Wed Apr 4 16:14:59 CEST 2012


Rob Vermaas writes:
 > Hi Konrad,
 >
 > >  > $ nix-env --help
 > >  >   ...
 > >  >   --keep-failed / -K: keep temporary directories of failed builds
 > >
 > > Thanks! nix-build understand the same option. But what it doesn't do
 > > is tell me where the temporary directory actually is. I ended up
 > > finding it using "find" on a file known to be there, but that's quite
 > > inefficient.
 >
 > It tell you the moment a build fails. E.g.

Not for me:

...
patching file Makefile.in
Hunk #1 succeeded at 289 (offset 3 lines).
Hunk #2 succeeded at 343 (offset 14 lines).builder for 
`/nix/store/17nwd32lg879clgy45qp8nfghxgv265s-gcc-apple-4.2.1.5666.3.drv' 
failed with exit code 1
cannot build derivation 
`/nix/store/05sh94g1jfr431p6n6gdla54chcf2qn7-gcc-apple-wrapper-4.2.1.5666.3.drv': 
1 dependencies couldn't be built
error: build of 
`/nix/store/05sh94g1jfr431p6n6gdla54chcf2qn7-gcc-apple-wrapper-4.2.1.5666.3.drv' 
failed

Konrad.


More information about the nix-dev mailing list