Nix-shell shebang: Difference between revisions
imported>N8henrie m Needs -p bash to run |
imported>JakeHillion →Python: Had no luck running this and [this](https://discourse.nixos.org/t/nix-shell-shebang-default-nix-no-such-file-or-directory/24246) suggested you need at least one package. Added `-p python3` and it worked. |
||
| Line 36: | Line 36: | ||
<syntaxHighlight lang="python"> | <syntaxHighlight lang="python"> | ||
#! /usr/bin/env nix-shell | #! /usr/bin/env nix-shell | ||
#! nix-shell -i python3 | #! nix-shell -i python3 -p python3 | ||
print("hello world") | print("hello world") | ||