Hi,
A bit of context:
I am trying to create a flake for a rust program (not mine).
Inside nix develop cargo build finishes successfully,
but nix build fails with unclear error for me as non rust developer.
error: failed to run custom build command for
foo v1.2.3 (/build/rcr7mv5k2465x57izdxjasdnlv3mn1vj-source/foo)Caused by:
process didn’t exit successfully:/build/rcr7mv5k2465x57izdxjasdnlv3mn1vj-source/target/release/build/foo-bb4444a3b729df6b/build-script-build(exit status: 1)
— stderr
Error: Os { code: 2, kind: NotFound, message: “No such file or directory” }
I guess I need to get content of build-script-build to find the answer.
So I tried to use nix debugger to break on the error and inspect the temporary file.
BreakpointHook just hangs without any extra output nix build --verbose
nativeBuildInputs = [ pkgs.breakpointHook ];
nix build --debugger has no effect - nix exits up on the error in the same way as without the debugger option.