Flakes: Difference between revisions
imported>Erikarvstedt m Remove incorrect statement about Flakes being only available on unstable, use `pkgs.nixFlakes` |
imported>Raboof move 'see also' to top |
||
| Line 1: | Line 1: | ||
'''Nix Flakes''' are an upcoming feature of the Nix package manager. | '''Nix Flakes''' are an upcoming feature of the Nix package manager. | ||
== See also == | |||
* [https://serokell.io/blog/practical-nix-flakes Practical Nix Flakes] - 2021: Intro article on working with Nix and Flakes | |||
* [https://github.com/numtide/flake-utils flake-utils: Library to avoid some boiler-code when writing flakes] | |||
* [https://zimbatm.com/NixFlakes/#direnv-integration zimbat's direnv article] | |||
* [https://www.tweag.io/blog/2020-05-25-flakes/ Nix Flakes, Part 1: An introduction and tutorial] | |||
* [https://www.tweag.io/blog/2020-06-25-eval-cache/ Nix Flakes, Part 2: Evaluation caching] | |||
* [https://www.tweag.io/blog/2020-07-31-nixos-flakes/ Nix Flakes, Part 3: Managing NixOS systems] | |||
* [https://www.youtube.com/watch?v=QXUlhnhuRX4&list=PLgknCdxP89RcGPTjngfNR9WmBgvD_xW0l Nix flakes 101: Introduction to nix flakes] | |||
* [https://github.com/nix-community/todomvc-nix building Rust and Haskell flakes] | |||
== Introduction == | |||
Flakes allow you to specify your code's dependencies (e.g. remote Git repositories) in a declarative way, simply by listing them inside a <code>flake.nix</code> file: | Flakes allow you to specify your code's dependencies (e.g. remote Git repositories) in a declarative way, simply by listing them inside a <code>flake.nix</code> file: | ||
| Line 529: | Line 542: | ||
* [https://github.com/NixOS/rfcs/pull/49 Eelco Dolstra's RFC #49] - This is the initial RFC for Flakes to be included in NixOS, from July 2019 | * [https://github.com/NixOS/rfcs/pull/49 Eelco Dolstra's RFC #49] - This is the initial RFC for Flakes to be included in NixOS, from July 2019 | ||
* [https://github.com/NixOS/nix/blob/master/src/nix/flake.md spec describing flake inputs in more detail] | * [https://github.com/NixOS/nix/blob/master/src/nix/flake.md spec describing flake inputs in more detail] | ||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:Nix]] | [[Category:Nix]] | ||
[[Category:Flakes]] | [[Category:Flakes]] | ||