-
Notifications
You must be signed in to change notification settings - Fork 80
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
import callLocklessFlake #69
Conversation
This function was added to nixpkgs in NixOS/nixpkgs#167947 by MatthewCroughan. And later reverted because it's for unstable flakes. So let's add it here, since a lot of projects are already importing flake-utils.
7d5ff83
to
9046d46
Compare
😿 now I need to have a dependency on flake-utils. |
I'd never use it to generate sets or outputs though. I'm using it for a flake-utils-plus feature. I should get rid of that and slim my config down. Less repos to trust and rely upon existing. Code can still go missing on the internet, even if flakes let us pull in as much of it as we want. At least with Nixpkgs we have tarballs.nixos.org which lets us get around the instability of the internet. A flake with more than a few inputs is pretty scary, when you don't have something like tarballs.nixos.org, if you think about it. |
I don't understand your arguments. nixpkgs maintainers have already rejected it. What is your point? If you don't want it included here it's fine, I will just close the PR. |
@zimbatm I'm fine with it being here. I have no comment on that. I'm just commenting on the state of flakes, dependencies, and people not thinking about the inputs they consume as something that can disappear from the internet with no backup. |
It's probably worth noting also that this is a function ripped directly from flake-compat, so it already exists there. So in a way you would be blurring the lines between flake-utils and flake-compat. https://github.com/edolstra/flake-compat/blob/master/default.nix#L84 |
All-in-all. Probably better to wait until flakes stabilize, or support NixOS/rfcs#82 don't you think? |
I don't need it so I don't care. I like the idea of making flake-compat a flake itself :) |
And yes, depending on a bunch of third-party repos is always risky. Golang has a public proxy that keeps a cache of fetched projects, maybe we could do the same: https://go.dev/ref/mod#goproxy-protocol |
That sounds like a great idea. I would love to see an example of how to setup your own version of tarballs.nixos.org, or something like the public golang proxy. |
There is always the good old:
It would be cool if there was a reverse proxy that would automatically upload those to the cache. |
This function was added to nixpkgs in
NixOS/nixpkgs#167947 by @MatthewCroughan.
And later reverted because it's for unstable flakes.
So let's add it here, since a lot of projects are already importing
flake-utils.