Conversation
Pretty sure that is already the case, since the I've seen the unstable prefix in the version attribute whenever there was no tagged release. So I'm not sure this change is actually necessary. |
no it's not, nix-build's syntax is not consistent with nix-env: working commands: nix-env -i doesn't read the pname and search against it, instead it takes the full name and strips the version with something like
Anyways, I just remembered it's actually in the nixpkgs manual that you should add -unstable to the name of "non releases". It also says the version should always start with a number. So technically -unstable should be moved from the version to the name. Considering yaxg really is stable, maybe I'll bug upstream to tag this as 1.0 or something. |
|
Yeah, where to put |
|
Yeah I already made a little bash function that I use, but it's a bit more hacky: Anyways since it seems the rest of nixos uses -unstable in this way I'll close this issue. Maybe I'll bug upstream to make a tag if it's really necessary. |
Motivation for this change
When I first wrote this package I didn't fully understand how versioning worked in nixos, and I didn't realize the -unstable would end up in the package name rather than the version string. I added unstable because there was no official version tag, however yaxg is actually stable, and hasn't had a change since 2018. This change simplifies installing yaxg in a nix environment from
nix-env -i yaxg-unstableto justnix-env -i yaxg.Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)