From 9829db71090614beaf04d7e52ccc79569be0710b Mon Sep 17 00:00:00 2001 From: David Meister Date: Sat, 23 May 2026 08:06:37 +0000 Subject: [PATCH] feat: add rust-node-shell devShell Slim shell for repos that ship a Rust crate plus a Node/WASM binding. Co-Authored-By: Claude Opus 4.7 --- flake.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/flake.nix b/flake.nix index cb31735..054939e 100644 --- a/flake.nix +++ b/flake.nix @@ -555,6 +555,20 @@ ''; }; + # Slim shell for repos that ship a Rust crate plus a node/WASM + # binding (e.g. rain.math.float's @rainlanguage/float npm + # package built from the rust-shell-compiled WASM). Adds node + # to rust-shell without dragging in the heavy sol/subgraph + # closure. Keeps everything under nix so PATH ordering and + # version drift between actions/setup-node and nix go away. + rust-node-shell = pkgs.mkShell { + buildInputs = rust-build-inputs ++ node-build-inputs ++ rs-tasks ++ common-shell-inputs; + shellHook = '' + ${pre-commit.shellHook} + ${source-dotenv} + ''; + }; + default = pkgs.mkShell { buildInputs = sol-build-inputs