mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
acd100ff82
https://github.com/rustwasm/wasm-bindgen/releases/tag/0.2.63 https://github.com/rustwasm/wasm-bindgen/releases/tag/0.2.64
29 lines
921 B
Nix
29 lines
921 B
Nix
{ rustPlatform, fetchFromGitHub, lib, openssl, pkgconfig, stdenv, curl, Security, ... }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wasm-bindgen-cli";
|
|
version = "0.2.64";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rustwasm";
|
|
repo = "wasm-bindgen";
|
|
rev = version;
|
|
sha256 = "1h8sxa15v4l6m4b82p0rlg7ilzfjdz2x7lipampapb9yzn9c5dcs";
|
|
};
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security curl ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
cargoSha256 = "1pynk2yisv6ryj1rlwx8bv6akjm39i3d6sd8f42b5v1w5vsg0nqm";
|
|
cargoPatches = [ ./0001-Add-cargo.lock.patch ];
|
|
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;
|
|
};
|
|
}
|