From 2a8e58b799b88a25be51053c72d8f79b403af5df Mon Sep 17 00:00:00 2001 From: Maximilian Kienitz Date: Sat, 31 Aug 2024 02:49:20 +0200 Subject: [PATCH] wasm-pack: 0.12.1 -> 0.13.0 --- pkgs/development/tools/wasm-pack/default.nix | 32 ++++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/pkgs/development/tools/wasm-pack/default.nix b/pkgs/development/tools/wasm-pack/default.nix index 94c1ae6e01ed..305a4e666c42 100644 --- a/pkgs/development/tools/wasm-pack/default.nix +++ b/pkgs/development/tools/wasm-pack/default.nix @@ -1,24 +1,33 @@ -{ lib -, stdenv -, fetchFromGitHub -, rustPlatform -, darwin +{ + lib, + stdenv, + fetchFromGitHub, + rustPlatform, + darwin, + cmake, + pkg-config, + zstd, }: rustPlatform.buildRustPackage rec { pname = "wasm-pack"; - version = "0.12.1"; + version = "0.13.0"; src = fetchFromGitHub { owner = "rustwasm"; repo = "wasm-pack"; rev = "refs/tags/v${version}"; - hash = "sha256-L4mCgUPG4cgTUpCoaIUOTONBOggXn5vMyPKj48B3MMk="; + hash = "sha256-NEujk4ZPQ2xHWBCVjBCD7H6f58P4KrwCNoDHKa0d5JE="; }; - cargoHash = "sha256-mqQRQXaUW6mreE7UUEA0zhhaaGGKLRUngH9QLxcaIdY="; + cargoHash = "sha256-pFKGQcWW1/GaIIWMyWBzts4w1hMu27hTG/uUMjkfDMo="; - buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security ++ [ zstd ]; # Most tests rely on external resources and build artifacts. # Disabling check here to work with build sandboxing. @@ -28,7 +37,10 @@ rustPlatform.buildRustPackage rec { description = "Utility that builds rust-generated WebAssembly package"; mainProgram = "wasm-pack"; homepage = "https://github.com/rustwasm/wasm-pack"; - license = with licenses; [ asl20 /* or */ mit ]; + license = with licenses; [ + asl20 # or + mit + ]; maintainers = [ maintainers.dhkl ]; }; }