diff options
author | Kevin Cox <kevincox@kevincox.ca> | 2019-05-03 17:38:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 17:38:45 +0100 |
commit | d30caa956a227e2564da122ab9d987d51265bc93 (patch) | |
tree | ee84369e60e9d4a879df6c0f81b689c1513e55c1 /pkgs/development | |
parent | d416b263cfa63d1b837b24421bc3dd5150fb8200 (diff) | |
parent | 419b7c6bbd0a3a1eb02d140ed8f204b1acf6afe7 (diff) |
Merge pull request #58644 from dhl/wasm-pack
wasm-pack: init at 0.8.1
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/wasm-pack/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/tools/wasm-pack/default.nix b/pkgs/development/tools/wasm-pack/default.nix new file mode 100644 index 0000000000000..b2bee738344d4 --- /dev/null +++ b/pkgs/development/tools/wasm-pack/default.nix @@ -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; + }; +} |