nixpkgs/pkgs/tools/misc/wasm-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
885 B
Nix
Raw Normal View History

2023-03-09 22:53:30 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "wasm-tools";
2023-11-21 10:52:45 +00:00
version = "1.0.54";
2023-03-09 22:53:30 +00:00
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = pname;
rev = "${pname}-${version}";
2023-11-21 10:52:45 +00:00
hash = "sha256-ZiOuD7aiBI1virfcXzxHnX5/uPZRc+Nntg24K2b9Mbo=";
2023-03-09 22:53:30 +00:00
fetchSubmodules = true;
};
2023-10-16 16:16:07 +00:00
# Disable cargo-auditable until https://github.com/rust-secure-code/cargo-auditable/issues/124 is solved.
auditable = false;
2023-11-21 10:52:45 +00:00
cargoHash = "sha256-OPNxs5WSQEatIJQ48GYjCzwM4twvQd38W/xsFgU9dB0=";
2023-03-09 22:53:30 +00:00
cargoBuildFlags = [ "--package" "wasm-tools" ];
cargoTestFlags = [ "--all" ];
meta = with lib; {
description = "Low level tooling for WebAssembly in Rust";
homepage = "https://github.com/bytecodealliance/wasm-tools";
license = licenses.asl20;
maintainers = with maintainers; [ ereslibre ];
2023-11-27 01:17:53 +00:00
mainProgram = "wasm-tools";
2023-03-09 22:53:30 +00:00
};
}