-
Notifications
You must be signed in to change notification settings - Fork 36
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
How to upgrade nix? #27
Comments
@yajo You can produce the upgraded nix-portable declaratively by overriding the flake inputs. |
Can you elaborate for beginners like me? My build script (for netlify) looks like
how would I change that to get a specific version of nix? |
@nomeata Sorry for late reply. As nix-portable enables the flake features by default, you can make use it to build and run the Nix Flakes. You can find a Flakes introduction on the NixOS Wiki: https://nixos.wiki/wiki/Flakes There are several ways to build nix-portable from flake. The most reliable one is to write a
If the file is inside a Git repo, you can then run $ nix build my/directory#nix-portable to build the executable with the specified Nixpkgs and Nix versions. If the file is not inside a Git repo, change |
No matter what I try, I always get:
How can I upgrade nix version inside the container?
The closest I can get is change the channel as indicated in #26 and run
nix-shell -p nix
, but that removes the comfort of using nix from outside the container by creating a symlink fromnix
tonix-portable
.Thanks.
The text was updated successfully, but these errors were encountered: