[<<][nixos][>>][..]
Thu Oct 17 08:33:00 EDT 2019

debugging

I guess the only way to figure out how this works is to start tracing
down error messages...

[master] build@gwtest:~/cache/top_src/gw_src/deps/asm_tools/asm-tools$ make
nix-build release.nix
these derivations will be built:
  /nix/store/0aw4zvy9174w04wcwpcnnxhhlvv84ad1-asm-tools-1.0.0.drv
building '/nix/store/0aw4zvy9174w04wcwpcnnxhhlvv84ad1-asm-tools-1.0.0.drv'...
/nix/store/63karsgdg7fm3q0if4zfd7apbd8ac1ci-stdenv-linux/setup: line 804: /build/env-vars: No such file or directory
setupCompilerEnvironmentPhase
/nix/store/63karsgdg7fm3q0if4zfd7apbd8ac1ci-stdenv-linux/setup: line 804: /build/env-vars: No such file or directory
Build with /nix/store/68pd1fg0xhjv642klsz9xpbsckvj5dxj-ghc-8.6.3.
mkdir: cannot create directory ‘/build’: Permission denied
builder for '/nix/store/0aw4zvy9174w04wcwpcnnxhhlvv84ad1-asm-tools-1.0.0.drv' failed with exit code 1
error: build of '/nix/store/0aw4zvy9174w04wcwpcnnxhhlvv84ad1-asm-tools-1.0.0.drv' failed
Makefile:14: recipe for target 'release' failed
make: *** [release] Error 100

That line contains:

export > "$NIX_BUILD_TOP/env-vars" || true


Where is this variable set?
https://discourse.nixos.org/t/custom-installation-of-nix-unset-nix-build-top/4285

So it looks like there is an issue with the install.

It defaults to /build and can be set in nix.conf
Simple workaround seems to be to create /build with proper perms
https://discourse.nixos.org/t/custom-installation-of-nix-unset-nix-build-top/4285

ok it moves now





[Reply][About]
[<<][nixos][>>][..]