wasm-pack: 0.8.1 -> 0.9.1

This commit is contained in:
David Leung 2020-02-11 18:34:23 +08:00 committed by Frederik Rietdijk
parent 5a001981db
commit e6b2d88b2a

View File

@ -2,32 +2,35 @@
, fetchFromGitHub , fetchFromGitHub
, rustPlatform , rustPlatform
, pkgconfig , pkgconfig
, openssl , libressl
, curl , curl
, Security , Security
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "wasm-pack"; pname = "wasm-pack";
version = "0.8.1"; version = "0.9.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rustwasm"; owner = "rustwasm";
repo = "wasm-pack"; repo = "wasm-pack";
rev = "v${version}"; rev = "v${version}";
sha256 = "1z66m16n4r16zqmnv84a5jndr5x6mdqdq4b1wq929sablwqd2rl4"; sha256 = "1rqyfg6ajxxyfx87ar25nf5ck9hd0p12qgv98dicniqag8l4rvsr";
}; };
cargoSha256 = "0hp68w5mvk725gzbmlgl8j6wa1dv2fydil7jvq0f09mzxxaqrwcs"; cargoSha256 = "095gk6lcck5864wjhrkhgnkxn9pzcg82xk5p94br7lmf15y9gc7j";
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ] buildInputs = [
++ stdenv.lib.optionals stdenv.isDarwin [ curl Security ]; # LibreSSL works around segfault issues caused by OpenSSL being unable to
# gracefully exit while doing work.
# See: https://github.com/rustwasm/wasm-pack/issues/650
libressl
] ++ stdenv.lib.optionals stdenv.isDarwin [ curl Security ];
# Most tests rely on external resources and build artifacts.
# Tests fetch external resources and build artifacts. # Disabling check here to work with build sandboxing.
# Disabled to work with sandboxing
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {