mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-02-03 19:48:27 +08:00
added recipes
This commit is contained in:
parent
6662273ae7
commit
5176c69d24
3 changed files with 128 additions and 7 deletions
|
|
@ -6,9 +6,11 @@ standalone scripts because you don’t need to create a repo and write a
|
|||
separate `flake.nix`.
|
||||
|
||||
The script should start with two "`shebang`" (`#!`) commands. The first
|
||||
should invoke `nix-shell`. The second should declares the scrpt
|
||||
should invoke `nix-shell`. The second should declares the script
|
||||
interpreter and any dependencies. Here are some examples.
|
||||
|
||||
include::bash-with-nix-pkg/main-generated.adoc[leveloffset=+1]
|
||||
|
||||
include::haskell-with-nix-pkg/main-generated.adoc[leveloffset=+1]
|
||||
|
||||
include::python-with-nix-pkg/main-generated.adoc[leveloffset=+1]
|
||||
|
|
|
|||
|
|
@ -16,4 +16,6 @@ include::shell-haskell-local/main-generated.adoc[leveloffset=+1]
|
|||
|
||||
include::shell-haskell-local-deps/main-generated.adoc[leveloffset=+1]
|
||||
|
||||
include::shell-haskell-no-cabal/main-generated.adoc[leveloffset=+1]
|
||||
|
||||
include::shell-with-env-var/main-generated.adoc[leveloffset=+1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue