Also see the Quickstart Guide to Flakes.
You may find this colour-coded generic flake template with instructions helpful.
Each repository listed below is intended to be a minimal, self-contained example demonstrating one aspect of flakes.
-
The hello-flake repo shows how to package a Bash script.
-
The hello-flake-compat repo is identical to
hello-flake
, except that it can be used in legacy (non-flake) projects. This allows us to launch a shell using either the oldnix-shell
or the newnix shell
(no hyphen) commands, and to build the project using either the oldnix-build
or the newnix build
commands. -
The hello-flake-haskell repo shows how to package a Haskell program.
-
The hello-flake-python repo shows how to package a Python program.