How do I diagnose a nix-build failing?
Currently I see output as:
nix build -v
warning: dumping very large path (> 256 MiB); this may run out of memory
building '/nix/store/fdrm6kbm68vld3bhfjizv684ck725lyf-blog.drv'...
builder for '/nix/store/fdrm6kbm68vld3bhfjizv684ck725lyf-blog.drv' failed with exit code 1; last 5 log lines:
unpacking sources
unpacking source archive /nix/store/s7r5vlvp49ad6a9d5hqhsiaxw691iyhf-Blog
source root is Blog
patching sources
configuring
[0 built (1 failed), 0.0 MiB DL]
error: build of '/nix/store/fdrm6kbm68vld3bhfjizv684ck725lyf-blog.drv' failed
I'd expect to find some logs / errors of why it failed to build?
Following from https://stackoverflow.com/a/47264375/1663462:
I've tried adding build-cache-failures = true; to the default.nix however I still see no output from:
nix-store --read-log
And nix-store --query-failed-paths results in:
error: no operation specified
Try 'nix-store --help' for more information.