Closed doyougnu closed 2 years ago
Have you tried using the --keep-failed
flag? After the build fails, it should output something along the lines of "keeping /tmp/....". Usually /tmp/drvname-0
, I believe.
Yes this is exactly what I was missing. I cannot find a reference to this flag in either the man page for nix build
or the nix manual. Am I missing something or is this just undocumented?
nix --help | grep keep-failed
shows it for me.
Closing. Thanks for the help @cole-h
Is your feature request related to a problem? Please describe.
llvm_git
and have to apply some patches. These patches fail:and I want to inspect the
*.rej
files. Where are they? How can I do that? I see it suggests runningnix log ...
so let's do that:Ok I see a nix-store path, lets check that:
Ok great let's check the file:
Nothing.
Describe the solution you'd like Perhaps this is a documentation issue, but if it is I want documentation that says:
nix log --something
ornix develop --something
which saves the working directory for inspection to/tmp/something
Describe alternatives you've considered I've considered doing cloning llvm manually just to inspect the patch error. But what is the point of using nix if I have to do this when I run into a build problem?