-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add nixos versions to replace channels? #6
Comments
Why not use this instead? $ nix shell nixpkgs/nixos-20.09#hello But in general, I agree that just writing |
I did not imagine this to work, actually! It was my impression From the registry file "from": {
"id": "nixpkgs",
"type": "indirect"
},
"to": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
} it seems no branch is selected. I was under the impression at least a channel was chosen. Checking what
Bare |
Independentlty of the appropriate invocation syntax, I do agree that the registry could ship with current stable + |
This sounds neat but here is a little idea to consider: Maybe it is worth renaming Just a thought, possibly RFC material, but yeah, might be worth considering |
One hiccup is that Nix considers that keys with a dot must be a path, and doesn't look them up even if they are in the registry. |
The idea of flakes is to also replace channels. In a flake, one can choose what nixpkgs url to use. When not working with a local flake, one can invoke e.g.
If one wants a version from 20.09, one needs to use
It would be convenient if there would be registry entries for all stable versions so one could write
We do need to draw a line here because we can't add all branches of whatever project. Also, it's not bad having to learn to use
override-input
. And, it prevents users from relying specifically onnixos-20.09
in aflake.nix
where maybe they should not.I do not know whether we should add the stable versions or not, but I can imagine here the convenience outweighs the disadvantages.
The text was updated successfully, but these errors were encountered: