wasm-pack: init at 0.8.1
wasm-pack is a workflow tool maintained by the Rust and WebAssembly Working Group to make working with Rust-generated WebAssembly packages easier to work with.
This commit is contained in:
parent
2fdca0eb58
commit
419b7c6bbd
36
pkgs/development/tools/wasm-pack/default.nix
Normal file
36
pkgs/development/tools/wasm-pack/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, rustPlatform
|
||||||
|
, pkgconfig
|
||||||
|
, openssl
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
name = "wasm-pack-${version}";
|
||||||
|
version = "0.8.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rustwasm";
|
||||||
|
repo = "wasm-pack";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1z66m16n4r16zqmnv84a5jndr5x6mdqdq4b1wq929sablwqd2rl4";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "1xdx0gjqd4zyhnp72hz88rdmgry1m7rcw2j73lh67vp08z74y54y";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
|
# Tests fetch external resources and build artifacts.
|
||||||
|
# Disabled to work with sandboxing
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A utility that builds rust-generated WebAssembly package";
|
||||||
|
homepage = https://github.com/rustwasm/wasm-pack;
|
||||||
|
license = with licenses; [ asl20 /* or */ mit ];
|
||||||
|
maintainers = [ maintainers.dhkl ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -23317,6 +23317,8 @@ in
|
|||||||
|
|
||||||
vttest = callPackage ../tools/misc/vttest { };
|
vttest = callPackage ../tools/misc/vttest { };
|
||||||
|
|
||||||
|
wasm-pack = callPackage ../development/tools/wasm-pack { };
|
||||||
|
|
||||||
wavegain = callPackage ../applications/audio/wavegain { };
|
wavegain = callPackage ../applications/audio/wavegain { };
|
||||||
|
|
||||||
wcalc = callPackage ../applications/misc/wcalc { };
|
wcalc = callPackage ../applications/misc/wcalc { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user