Open augu5te opened 1 year ago
This is fixed by #6530.
Same problem still present on nix (Nix) 2.22.1
Confirm same problem still present on nix (Nix) 2.23.0pre20240510_87ab3c0
nix profile
seems to have similar problem too:
[user@e36842965c86 ~]$ ./nix --extra-experimental-features 'flakes nix-command' profile install nixpkgs#hello
error: filesystem error: directory iterator cannot open directory: No such file or directory [/nix/store/bw9z0jxp5qcm7jfp4vr6ci9qynjyaaip-hello-2.12.1]
Describe the bug
When
~/.local/share/nix/root
is used as a chroot store, template's source is not found despite it being present in the store.Steps To Reproduce
nix build "github:NixOS/nix/0b62dab6db3da5b20e62697b14aaaf80f1a2eea6#packages.x86_64-linux.nix-static"
./nix --extra-experimental-features 'flakes nix-command' flake init
Expected behavior Copy flake.nix from trivial template in current directory.
Tested with: nix (Nix) 2.10.3