You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to build a nix expression with nix-build --store will fail if the expression references a <path> that has not been cached on the local machine. For example:
error: file 'foobar' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
Workaround: first run the nix-build command without the --store option, so that the <path> is downloaded and cached on the local machine. After this finishes and it starts building, interrupt the build and re-run the command with the --store option added.
Attempting to build a nix expression with
nix-build --store
will fail if the expression references a<path>
that has not been cached on the local machine. For example:NIX_PATH=foobar=https://example.com/nixexprs.tar.xz nix-build --store ssh-ng://root@example.com -E 'with import <foobar> {}; baz'
Will result in something like:
error: file 'foobar' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
Workaround: first run the nix-build command without the
--store
option, so that the<path>
is downloaded and cached on the local machine. After this finishes and it starts building, interrupt the build and re-run the command with the--store
option added.This seems similar to #2053
The text was updated successfully, but these errors were encountered: