4 ms·
Nix Flakes are easier to manage than niv though.
by yewenjie 5y ago
Nix Flakes are easier to manage than niv though.
- ricardobeat 5y agoThe fact you need a version manager on top of your new, pristine and reproducible version manager is a bit concerning. Can’t whatever shortcomings exist be addressed in nix itself?
- yewenjie 5y agoYes, that is what Nix Flakes does. You declare your stuff with a flake.nix and it creates a flake.lock file.
- imatpot 5y agoit's not on top of Nix itself but (about to be) a part of it. according to the NixOS Wiki [1] Flakes is an upcoming feature of the base package manager. it's not part of the stable channel yet, and "proper" documentation only currently exists in the unstable manual [2]. [1] https://nixos.wiki/wiki/Flakes https://nixos.wiki/wiki/Flakes [2] https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html https://nixos.org/manual/nix/unstable/command-ref/new-cli/ni...
- e3bc54b2 5y agoGP is kind of right though. Flakes are effectively packages for Nix expressions. Even priginal Flakes RFC calls this out. But the difference is, as you mentioned, flakes are integrated within Nix, and provide better ergonomics.