Merge pull request #241 from Michael-J-Ward/patch-2

Add note on multi-line shebang
This commit is contained in:
Domen Kožar 2022-03-30 10:10:18 +01:00 committed by GitHub
commit 68416183e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: