From b31ea482a88ebea5f0365ead495766b2a0791761 Mon Sep 17 00:00:00 2001 From: Arda Nakisci Date: Thu, 22 Jan 2026 16:26:52 +0300 Subject: [PATCH] pin wasm-bindgen-cli to 0.2.100 via overlay Use an overlay to make pkgs.wasm-bindgen-cli point to pkgs.wasm-bindgen-cli_0_2_100. This ensures all consumers of rainix.pkgs get the pinned version. The latest nixpkgs has wasm-bindgen-cli 0.2.108 which is incompatible with the rain.wasm dependency that requires 0.2.100. --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1d154b4..1a33f7c 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,10 @@ outputs = { self, nixpkgs, flake-utils, rust-overlay, foundry, solc, nixpkgs-old }: flake-utils.lib.eachDefaultSystem (system: let - overlays = [ (import rust-overlay) foundry.overlay solc.overlay ]; + wasm-bindgen-overlay = final: prev: { + wasm-bindgen-cli = prev.wasm-bindgen-cli_0_2_100; + }; + overlays = [ (import rust-overlay) foundry.overlay solc.overlay wasm-bindgen-overlay ]; pkgs = import nixpkgs { inherit system overlays; }; old-pkgs = import nixpkgs-old { inherit system; };