2019-08-29 21:43:15 +02:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib, openssl, pkgconfig, stdenv, curl, Security, ... }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wasm-bindgen-cli";
|
2020-05-01 23:55:10 +02:00
|
|
|
version = "0.2.62";
|
2019-08-29 21:43:15 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rustwasm";
|
|
|
|
repo = "wasm-bindgen";
|
|
|
|
rev = version;
|
2020-05-01 23:55:10 +02:00
|
|
|
sha256 = "0d3ph3g220nvzwxa71rch03j5c0w06v8z4lmlyp5kky6p86r37hz";
|
2019-08-29 21:43:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security curl ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2020-05-01 23:55:10 +02:00
|
|
|
cargoSha256 = "13lj2yx2bcwac1b4gpwcgiwqvy178zis6r1pidn4pgwqv7zxa7p2";
|
2019-12-20 19:19:06 +01:00
|
|
|
cargoPatches = [ ./0001-Add-cargo.lock.patch ];
|
2019-08-29 21:43:15 +02:00
|
|
|
cargoBuildFlags = [ "-p" pname ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://rustwasm.github.io/docs/wasm-bindgen/";
|
2019-08-29 21:43:15 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "Facilitating high-level interactions between wasm modules and JavaScript";
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|