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.

use a path reference for the example's inputs

cswimr (Jul 13, 2026, 1:01 PM EDT) cc602b27 0020220f

+8 -11
+6 -10
example/flake.lock
··· 18 18 }, 19 19 "nu2nix": { 20 20 "locked": { 21 - "lastModified": 1783959862, 22 - "narHash": "sha256-7zx5FFQXo3/SfAood6XpbWvwDjKXH8LUiytgzyQMZoo=", 23 - "ref": "refs/heads/main", 24 - "rev": "8544660c0c39f35fd59a8afb5e8e1ceb0c5b3515", 25 - "revCount": 11, 26 - "type": "git", 27 - "url": "https://tangled.org/csw.im/nu2nix" 21 + "path": "..", 22 + "type": "path" 28 23 }, 29 24 "original": { 30 - "type": "git", 31 - "url": "https://tangled.org/csw.im/nu2nix" 32 - } 25 + "path": "..", 26 + "type": "path" 27 + }, 28 + "parent": [] 33 29 }, 34 30 "root": { 35 31 "inputs": {
+2 -1
example/flake.nix
··· 2 2 inputs = { 3 3 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 4 4 systems.url = "github:nix-systems/default"; 5 - nu2nix.url = "git+https://tangled.org/csw.im/nu2nix"; 5 + nu2nix.url = ../.; 6 + # nu2nix.url = "git+https://tangled.org/csw.im/nu2nix"; 6 7 }; 7 8 8 9 outputs =