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.

31 lines
853 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-17 10:49:11 +00:00
version = "1.0.52";
2023-03-09 22:53:30 +00:00
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = pname;
rev = "${pname}-${version}";
2023-11-17 10:49:11 +00:00
hash = "sha256-6x2H+WY23XxBWmAqD2Lsc4TdCY76XiR/BhSU++XuIFY=";
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-17 10:49:11 +00:00
cargoHash = "sha256-1YnoHL+FKXhopcW0Scya22sRBwantRH9gF7w/rxU0H8=";
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 ];
};
}