Skip to content

Commit 8fdee5b

Browse files
/concepts/flakes: add dependency management alternative flake = false;
clarifies that specifying `flake = false;` on flake inputs can help resolve some of its drawbacks - in this case (if used consistently) getting [duplicate versions](https://zimbatm.com/notes/1000-instances-of-nixpkgs) and having to set `follows`. (this would not solve eager fetching, which would instead be addressed by [lazy trees](NixOS/nix#13225).) to make it more explicit what alternatives address what, a proper approach might be NixOS#1212.
1 parent 6a89099 commit 8fdee5b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/concepts/flakes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ Alternatives:
254254

255255
- Handle dependencies with [`npins`].
256256
- Handle dependencies inline using functions such as the [fetchers] or [`builtins.fetchTree`].
257+
- Use `inputs.<name>.flake = false;`
257258

258259
[fetchers]: https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers
259260
[`flake-inputs`]: https://github.com/fricklerhandwerk/flake-inputs

0 commit comments

Comments
 (0)