-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Focus on stable Nix with npins instead of Flakes #166
Conversation
- Simplifies the whole thing due to not having to mess with `system`, see NixOS/nix#3843 - Makes the lockfile _way_ smaller, see NixOS/nix#7730
Also how can I do offline evaluation with npins? With flakes, I can |
Also is there a way to avoid the nixpkgs re-import? This can be costly in terms of memory? Is it maybe possible to just override nixfmt from nixpkgs with this version? |
Much better:
|
Ah. There is actually: nixfmt-rfc-style |
I didn't know about With stable Nix there's a relatively easy way to gcroot all inputs to a derivation using
Though this won't gcroot any Nix inputs, so if you do a gc you'll still need internet, so it's not a complete solution either. Would be nice to see something like npins that also makes this easy. |
Well. It still has more documentation than |
Focus on stable Nix and use npins for dependencies.
With this PR, the
flake.nix
relies ondefault.nix
, rather than the other way around.system
, see Provide builtins.currentSystem as a input to flakes or make system a parameter nix#3843I believe the only negative impact is that downstream Flake users can't use the
follows
mechanism anymore to override nixpkgs. Unfortunately there's no way to give a better error in such a case.Instead what works is
Though I don't really expect this to be very necessary.
As a side benefit, this allows passing in a patched Nixpkgs just using e.g.
pkgs.applyPatches
, without needing Nix to support such functionality like in NixOS/nix#6530.