-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add a channel:
flakeref
#13168
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
Comments
Another alternative is to use the global flake registry to provide such aliases.
|
The issue is naming. Sadly, |
We also have a precedent set that $ nix-instantiate channel:nixpkgs-unstable --eval -A hello.outPath
"/nix/store/a9l6gcmcq3mll6d15pc3nfcpbsmd2zqg-hello-2.12.1" |
I would not call the umm. as we put it. cursed file syntax to be a good inspiration: https://gerrit.lix.systems/c/lix/+/1190 Part of the problem with trying to extend the flakeref format is that that is effectively extending the contract of libfetchers which then becomes observable as derivation API/ABI changes. I don't know if it is prudent to add more to that contract when it is currently underdocumented and full of problems. Another alternate solution might be doing the aliasing in the infrastructure: Secondarily I think it's troublesome to create a mechanism that is only usable for nixpkgs; there are other things that one might want to release other than nixpkgs that also would benefit from short names. This does lead to thinking about the flake registry. From a Lix perspective I think it would be acceptable to add these as aliases |
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
Nix infra now supports lockable taballs protocol for nixpkgs tarballs. This means that one can use
https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz
as opposed togithub:nixos/nixpkgs/nixpkgs-unstable
to save 15MB on download and get additional benefits in case ofnixos-
tarballs, such as getting aprogram-not-found
database bundled together with the tarballIt's however more wordy than the
github:
flakerefProposed solution
I propose adding a
channel:name
flakeref pointing tohttps://channels.nixos.org/name/nixexprs.tar.xz
to shorten thisAlternative solutions
Using a
nixos:
or similar flakeref or leaving things as isAdditional context
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: