[Nix-dev] Debugging nixpkgs

Rob Vermaas rob.vermaas at gmail.com
Wed Apr 4 15:43:18 CEST 2012


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.

$ nix-build asd.nix -K

building /nix/store/2l6jclwi6i1ramic2cfav00n65c03bqb-asd
builder for `/nix/store/r26xz2b8dr970sf6221m3bmg7c7i7yvy-asd.drv'
failed; keeping build directory
`/tmp/nix-build-r26xz2b8dr970sf6221m3bmg7c7i7yvy-asd.drv-0'
builder for `/nix/store/r26xz2b8dr970sf6221m3bmg7c7i7yvy-asd.drv'
failed with exit code 1
error: build of `/nix/store/r26xz2b8dr970sf6221m3bmg7c7i7yvy-asd.drv' failed


Cheers,
Rob


More information about the nix-dev mailing list