Closed alexvorobiev closed 6 years ago
have you tried using bind mount instead of link? In my setup I mount /nix/store as separate partition and don't have (such) problems
@danbst Changing symlink to the bind mount fixed the problem for me, thanks! But still, since the symlinks are officially supported and the NIX_IGNORE_SYMLINK_STORE is documented, I think it should count as a bug...
It seems that exporting
export NIX_STORE=$(realpath /nix/store)
could help here. It however starts a local build instead of fetching from the binary cache...
@knedlsepp not surprising, the store path is part of the cache hash keys, changing it makes everything "uncached"
@RonnyPfannschmidt That makes a lot of sense.
Issue description
Due to space constraints I have /nix symlinked to another partition and use NIX_IGNORE_SYMLINK_STORE=1. It worked well until I tried to compile something which gave me "impure path" error. For instance, here is the error I got when I tried to install an R package which uses c++ code:
/nix is a symlink:
The error seems to be thrown here: ld-wrapper.sh#L31 so it looks like badPath doesn't recognize the path properly.
Steps to reproduce
Technical details