A simple helper that makes it easy to package Nu scripts with Nix, including inline dependency declarations for external commands and other packaged scripts.
flake nu nushell nix
1

Configure Feed

Select the types of activity you want to include in your feed.

fix readme alert

cswimr (Jul 13, 2026, 5:25 PM EDT) 91ec7937 b87bfec7

+1 -1
+1 -1
README.md
··· 52 52 nu2nix supports a custom format for declaring external dependencies inline in your script files. 53 53 All declared dependencies are automatically added to the script's `$PATH` when executed, using a wrapper script. 54 54 55 - > ![NOTE] 55 + > [!WARNING] 56 56 > Only dependencies you declare in the `External Dependencies` comment or the `extraDependencies` argument to `mkNuScript` will be included in the script's `$PATH` wrapper. `$PATH` is completely overridden, not appended to. This helps with reproducibility; if an external command isn't explicitly included in the wrapper, Nushell won't be able to find it at runtime. The only exception to this is Nushell itself, as Nushell is implicitly added to the script's `$PATH` wrapper by `mkNuScript`. 57 57 58 58 ```nu