aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/wasm-bindgen-cli/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/wasm-bindgen-cli/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/wasm-bindgen-cli/default.nix28
1 files changed, 18 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/development/tools/wasm-bindgen-cli/default.nix b/nixpkgs/pkgs/development/tools/wasm-bindgen-cli/default.nix
index 9adabeb573f..0863905e932 100644
--- a/nixpkgs/pkgs/development/tools/wasm-bindgen-cli/default.nix
+++ b/nixpkgs/pkgs/development/tools/wasm-bindgen-cli/default.nix
@@ -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.62";
+ version = "0.2.67";
- src = fetchFromGitHub {
- owner = "rustwasm";
- repo = "wasm-bindgen";
- rev = version;
- sha256 = "0d3ph3g220nvzwxa71rch03j5c0w06v8z4lmlyp5kky6p86r37hz";
- };
+ src =
+ let
+ tarball = fetchFromGitHub {
+ owner = "rustwasm";
+ repo = "wasm-bindgen";
+ rev = version;
+ sha256 = "0qx178aicbn59b150j5r78zya5n0yljvw4c4lhvg8x4cpfshjb5j";
+ };
+ 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 = "13lj2yx2bcwac1b4gpwcgiwqvy178zis6r1pidn4pgwqv7zxa7p2";
- cargoPatches = [ ./0001-Add-cargo.lock.patch ];
+ cargoSha256 = "0chpw6syqxn824cbkdjx1s26vmajx511gc4mp9y64vy7b7asba6x";
cargoBuildFlags = [ "-p" pname ];
meta = with lib; {