Re:Self-contained Python scripts with uv
by skavi on Sunday March 30, 2025 @04:27AM
(#43522428)
Yup, and you can apply the same technique to any language. The obvious example is bash with all the dependencies specified, but I’ve also hacked up quick single file rust scripts using nix shebangs.
https://nixos.wiki/wiki/Nix-shell_shebang