mirror of
https://github.com/nix-dot-dev/nix.dev.git
synced 2024-09-11 13:38:06 +03:00
Merge pull request #241 from Michael-J-Ward/patch-2
Add note on multi-line shebang
This commit is contained in:
commit
68416183e3
@ -150,6 +150,11 @@ print(django)
|
||||
|
||||
This is essentially the same example as in the previous section, but this time declaratively source controlled! All of the required Nix commands are included as `#!` shebang headers in the scripts itself.
|
||||
|
||||
:::{note}
|
||||
The multi-line shebang format is a feature of [nix-shell](https://nixos.org/manual/nix/stable/command-ref/nix-shell.html#use-as-a--interpreter).
|
||||
All the subsequent `#! nix-shell` lines are used to build up the shells configuration before building the shell and executing the body of the script.
|
||||
:::
|
||||
|
||||
## Next steps
|
||||
|
||||
We've only covered the bare essentials of Nix here. Once you're comfortable with these examples, take a look at:
|
||||
|
Loading…
Reference in New Issue
Block a user