Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixFlakes wants itself in the target store when building from a flake with --store #3486

Closed
vikanezrimaya opened this issue Apr 11, 2020 · 3 comments
Labels

Comments

@vikanezrimaya
Copy link
Member

vikanezrimaya commented Apr 11, 2020

$ sudo mkdir -p /mnt/test
$ sudo mount -t tmpfs tmpfs /mnt/test
$ nix build --store /mnt/test git+https://gitlab.com/vikanezrimaya/nix-flake#nixosConfigurations.maria.config.system.build.toplevel --extra-substituters auto?trusted=1
error: path '/nix/store/1a5hpb0ya1svwxdsny23ra5y75w3cnj6-nix-2.4pre20200403_3473b19' is not valid

This is how nixos-install worked previously (except no flakes! they weren't invented yet). I expected it to work the same with flakes. I was recommended to file an issue when telling this story in IRC.

Copying nixFlakes to the target store with nix-store --export $(nix-store -qR /nix/store/1a5hpb0ya1svwxdsny23ra5y75w3cnj6-nix-2.4pre20200403_3473b19) | nix-store --store /mnt/test --import is a suitable workaround.

@vikanezrimaya
Copy link
Member Author

vikanezrimaya commented Apr 11, 2020

Probably related:

$ nix copy --to local?root=/mnt/test $PWD#activationPackage.maria
warning: Git tree '/home/kisik21/Projects/vika-flake' is dirty
error: path '/nix/store/9iwm9nmjnxqxc1qpxn2z71g7ip4ybx0j-activate' is not valid

@stale
Copy link

stale bot commented Feb 16, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 16, 2021
@vikanezrimaya
Copy link
Member Author

Interesting. Looks like this is fixed, therefore closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant