Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.11 KB

flake-recipes.md

File metadata and controls

24 lines (17 loc) · 1.11 KB

Nix flake recipes

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 old nix-shell or the new nix shell (no hyphen) commands, and to build the project using either the old nix-build or the new nix 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.