-
Notifications
You must be signed in to change notification settings - Fork 8
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
question: how do I reference github:NixOS/nixpkgs/nixos-23.11 in Flakehub? #104
Comments
That's because we have a hidden git revision in the URL.
Yes it does -- |
Thanks, that makes sense. I noticed the releases, but there's 400+ of them. I scrolled through lots of pages, but didn't see anything that looked like
From reading the semantic version docs, I think I want: https://api.flakehub.com/f/NixOS/nixpkgs/~0.2311.tar.gz although, I did expect it to be 23.11. But... the UI doesn't provide a human readable version at any of the following URLs for me to check it:
Any pointer on the correct human URL? Thanks! |
We have special handling for Nixpkgs. When using The "human readable" version will be any of them with the fully specified version (i.e. the latest at the time of writing is https://flakehub.com/flake/NixOS/nixpkgs/0.2311.556903+rev-56528ee42526794d413d6f244648aaee4a7b56c0). The reason The newest versions should be on the very first page at the top, but to get to the FlakeHub page of a specific version, you'd need to look at the
would become
|
When using a standard Github flake reference, I can use the
nixos-23.11
tag:However,
nix flake init --template "github:DeterminateSystems/zero-to-nix#go-dev"
produces this:I don't know what version that is, I have to look at the
flake.lock
to find that it's5550a85a087c04ddcace7f892b0bdc9d8bb080c8
and I can't find a way to view the information in the Flakehub website. Playing with the URL like this: https://flakehub.com/flake/NixOS/nixpkgs/0.2305.491812 just gives me a 404.For a few months, I've been replacing the flakehub link with
github:NixOS/nixpkgs/nixos-23.11
, because I don't know how to use the tag I want with flakehub.So I thought that other people are probably doing the same.
Does flakehub support the use of
nixos-23.11
style tags or is that not the concept? How should users think about it?Thanks!
The text was updated successfully, but these errors were encountered: