2019-08-29 20:43:15 +01:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib, openssl, pkgconfig, stdenv, curl, Security, ... }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wasm-bindgen-cli";
|
2020-01-07 20:29:48 +00:00
|
|
|
version = "0.2.58";
|
2019-08-29 20:43:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rustwasm";
|
|
|
|
repo = "wasm-bindgen";
|
|
|
|
rev = version;
|
2020-01-07 20:29:48 +00:00
|
|
|
sha256 = "18n30i1pzrhm2wasa1737j9gihx1d6pwx77z552dcj1rdp7ar6ir";
|
2019-08-29 20:43:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security curl ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2020-02-14 02:00:26 +00:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2020-01-07 20:29:48 +00:00
|
|
|
cargoSha256 = "1kkvgqvn08pv0654b7s40vs92myzfiv965561mwfzhj8fx8f1y18";
|
2019-12-20 18:19:06 +00:00
|
|
|
cargoPatches = [ ./0001-Add-cargo.lock.patch ];
|
2019-08-29 20:43:15 +01:00
|
|
|
cargoBuildFlags = [ "-p" pname ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://rustwasm.github.io/docs/wasm-bindgen/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
description = "Facilitating high-level interactions between wasm modules and JavaScript";
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|