mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
wasm-pack: 0.12.1 -> 0.13.0
This commit is contained in:
parent
4dd3c85ad5
commit
2a8e58b799
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user