1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

wasm-bindgen-cli: 0.2.64 -> 0.2.65

https://github.com/rustwasm/wasm-bindgen/releases/tag/0.2.65
This commit is contained in:
Maximilian Bosch 2020-07-17 13:50:13 +02:00
parent 3f18f9b5c3
commit 3f4a78f749
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E
3 changed files with 2569 additions and 2570 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,21 +1,29 @@
{ rustPlatform, fetchFromGitHub, lib, openssl, pkgconfig, stdenv, curl, Security, ... }:
{ rustPlatform, fetchFromGitHub, lib, openssl, pkgconfig, stdenv, curl, Security
, runCommand
}:
rustPlatform.buildRustPackage rec {
pname = "wasm-bindgen-cli";
version = "0.2.64";
version = "0.2.65";
src = fetchFromGitHub {
owner = "rustwasm";
repo = "wasm-bindgen";
rev = version;
sha256 = "1h8sxa15v4l6m4b82p0rlg7ilzfjdz2x7lipampapb9yzn9c5dcs";
};
src =
let
tarball = fetchFromGitHub {
owner = "rustwasm";
repo = "wasm-bindgen";
rev = version;
sha256 = "0qfz5x2hmfxz0kjc1biki0748d4qi8ws0b4bx9y2fs8dgbnppkzf";
};
in runCommand "source" { } ''
cp -R ${tarball} $out
chmod -R +w $out
cp ${./Cargo.lock} $out/Cargo.lock
'';
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security curl ];
nativeBuildInputs = [ pkgconfig ];
cargoSha256 = "1pynk2yisv6ryj1rlwx8bv6akjm39i3d6sd8f42b5v1w5vsg0nqm";
cargoPatches = [ ./0001-Add-cargo.lock.patch ];
cargoSha256 = "1rjf4f8hm4vqjcdhi7s5az8p5633dg425m8hh32kakq1ar06pfvj";
cargoBuildFlags = [ "-p" pname ];
meta = with lib; {