-
Notifications
You must be signed in to change notification settings - Fork 0
/
wasm-bindgen.nix
38 lines (30 loc) · 1003 Bytes
/
wasm-bindgen.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, rustPlatform
, fetchCrate
, nodejs
, pkg-config
, openssl_1_1
, stdenv
, runCommand
}:
rustPlatform.buildRustPackage rec {
pname = "wasm-bindgen-cli";
version = "0.2.69";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-oB6ZPgKO72BmwEF3aVxA9vMfNch9N1dy3CixMfCrmx0=";
};
cargoSha256 = "sha256-U04mWfX6hRNsS3vq5L0gOG7dK0tTGdNZQnA1pX9U5qE=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl_1_1 ]; # NOTE: will not work on darwin because I dropped some stuff --asp
nativeCheckInputs = [ nodejs ];
# other tests require it to be ran in the wasm-bindgen monorepo
cargoTestFlags = [ "--test=interface-types" ];
meta = with lib; {
homepage = "https://rustwasm.github.io/docs/wasm-bindgen/";
license = with licenses; [ asl20 /* or */ mit ];
description = "Facilitating high-level interactions between wasm modules and JavaScript";
maintainers = with maintainers; [ nitsky rizary ];
mainProgram = "wasm-bindgen";
};
}