3 ms·
Quick shout-out to nix-shell shebangs, which allow a script to specify exact versions of all dependencies, Python or otherwise, which will be cached into a temp
by chriswarbo 5y ago
Quick shout-out to nix-shell shebangs, which allow a script to specify exact versions of all dependencies, Python or otherwise, which will be cached into a temporary sandbox.
https://nixos.org/manual/nix/stable/#use-as-a-interpreter https://nixos.org/manual/nix/stable/#use-as-a-interpreter
I wrote a Python script yesterday which calls out to a couple of external commands (`mlr` and `xq`), with a shebang like this:
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p python3 -p miller -p yq