nix-book/source/recipes/python-nixpkg/shell/main.adoc0
Amy de Buitléir 7ff82d6fb6 initial commit
2023-11-28 16:12:09 +00:00

24 lines
321 B
Text

= In `shell.nix`
[source,nix,linenums]
.shell.nix
....
include::shell.nix[]
....
Here's a short Python program that uses it.
[source,python,linenums]
.Main.hs
....
include::Main.py[]
....
Here's a demonstration using the program.
....
$# echo '$ nix-shell'
$# nix-shell --run bash <<EOL
$ python Main.py
$# EOL
....