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

29 lines
724 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "wasm-tools";
version = "1.0.45";
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-8iIYExnWK9W9gVTV66ygY2gu3N1pwylUeOf6LOz51qA=";
fetchSubmodules = true;
};
cargoHash = "sha256-KwtlgBcijeYRQ5Yfrqd6GirHkbZqAVd2/yP6aJT3pWM=";
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 ];
};
}