28 lines
919 B
Nix
28 lines
919 B
Nix
{ rustPlatform, fetchFromGitHub, lib, openssl, pkgconfig, stdenv, curl, Security, ... }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wasm-bindgen-cli";
|
|
version = "0.2.56";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rustwasm";
|
|
repo = "wasm-bindgen";
|
|
rev = version;
|
|
sha256 = "0fmwcv192zyplxp26r9amb4zf7qf8150rd6k39sdi60lxp1dx76p";
|
|
};
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security curl ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
cargoSha256 = "0xn6sa1gc62gqf8zfn9b4zs2g58diixflxdvflygk5y55bp3rjcy";
|
|
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;
|
|
};
|
|
}
|