From 08dd663b9be560bcf6775c613cac7cf22722d740 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Mon, 15 Sep 2025 11:07:33 -0400 Subject: [PATCH] wasm-bindgen-cli_0_2_104: init at 0.2.104 wasmbindgen requires a exact match between the cli version and the library version, generally that isn't that bad as it should always be safe to update to the latest patch version of a library (but ofc when reproduciblity and outdated lock files are in the mix that complicates stuff, which is why I assume multiple versions are kept) It's a case of upgrading a patch version technically being breaking change unless you also update the library versions alongside it. --- .../wasm-bindgen-cli/default.nix | 2 +- .../wa/wasm-bindgen-cli_0_2_104/package.nix | 19 +++++++++++++++++++ pkgs/top-level/aliases.nix | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 pkgs/by-name/wa/wasm-bindgen-cli_0_2_104/package.nix diff --git a/pkgs/build-support/wasm-bindgen-cli/default.nix b/pkgs/build-support/wasm-bindgen-cli/default.nix index feb51f88313c..ff171b573b0a 100644 --- a/pkgs/build-support/wasm-bindgen-cli/default.nix +++ b/pkgs/build-support/wasm-bindgen-cli/default.nix @@ -38,7 +38,7 @@ rustPlatform.buildRustPackage { passthru.updateScript = nix-update-script { }; meta = { - homepage = "https://rustwasm.github.io/docs/wasm-bindgen/"; + homepage = "wasm-bindgen.github.io/wasm-bindgen/"; license = with lib.licenses; [ asl20 # or mit diff --git a/pkgs/by-name/wa/wasm-bindgen-cli_0_2_104/package.nix b/pkgs/by-name/wa/wasm-bindgen-cli_0_2_104/package.nix new file mode 100644 index 000000000000..6cf00848f144 --- /dev/null +++ b/pkgs/by-name/wa/wasm-bindgen-cli_0_2_104/package.nix @@ -0,0 +1,19 @@ +{ + buildWasmBindgenCli, + fetchCrate, + rustPlatform, +}: + +buildWasmBindgenCli rec { + src = fetchCrate { + pname = "wasm-bindgen-cli"; + version = "0.2.104"; + hash = "sha256-9kW+a7IreBcZ3dlUdsXjTKnclVW1C1TocYfY8gUgewE="; + }; + + cargoDeps = rustPlatform.fetchCargoVendor { + inherit src; + inherit (src) pname version; + hash = "sha256-V0AV5jkve37a5B/UvJ9B3kwOW72vWblST8Zxs8oDctE="; + }; +} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 2c41954b72aa..6797d458dc8c 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -2569,7 +2569,7 @@ mapAliases { wal_e = throw "wal_e was removed as it is unmaintained upstream and depends on the removed boto package; upstream recommends using wal-g or pgbackrest"; # Added 2024-09-22 wapp = tclPackages.wapp; # Added 2024-10-02 wavebox = throw "'wavebox' has been removed due to lack of maintenance in nixpkgs"; # Added 2025-06-24 - wasm-bindgen-cli = wasm-bindgen-cli_0_2_100; + wasm-bindgen-cli = wasm-bindgen-cli_0_2_104; watershot = throw "'watershot' has been removed as it is unmaintained upstream and no longer works"; # Added 2025-06-01 wayfireApplications-unwrapped = throw '' 'wayfireApplications-unwrapped.wayfire' has been renamed to/replaced by 'wayfire'