2 ms·
If the wrapper itself cooperates, you can also embed more information in the following lines. nix-shell for example allows installing dependencies and any param
by viraptor 2y ago
If the wrapper itself cooperates, you can also embed more information in the following lines. nix-shell for example allows installing dependencies and any parameters with:
#!/usr/bin/env nix-shell
#!nix-shell --pure -i runghc ./default.nix
... Any Haskell code follows
- __float 2y agoUv supports this: https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies https://docs.astral.sh/uv/guides/scripts/#declaring-script-d... (Though, this is more general than uv for Python script deps: https://packaging.python.org/en/latest/specifications/inline-script-metadata/#script-type https://packaging.python.org/en/latest/specifications/inline...)