From ee7fd661e8f859d319d893a520127cfef9c43e8b Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Wed, 19 Feb 2025 21:08:59 -0500 Subject: [PATCH] wasm-language-tools: init at 0.3.2 Signed-off-by: Ethan Carter Edwards --- .../wa/wasm-language-tools/package.nix | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/wa/wasm-language-tools/package.nix diff --git a/pkgs/by-name/wa/wasm-language-tools/package.nix b/pkgs/by-name/wa/wasm-language-tools/package.nix new file mode 100644 index 000000000000..1aa2d6015d5b --- /dev/null +++ b/pkgs/by-name/wa/wasm-language-tools/package.nix @@ -0,0 +1,38 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage rec { + pname = "wasm-language-tools"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "g-plane"; + repo = "wasm-language-tools"; + tag = "v${version}"; + hash = "sha256-f1Mq+1gZZelN12rFTLJHOvdzDAbqufzT9+I6pkJdJMU="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-P3sxAFZjAlgPrGrw3W+7ufflUz3/Xe7lTXygnSX5Q+4="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgram = "${placeholder "out"}/bin/wat_server"; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Language server and other tools for WebAssembly"; + homepage = "https://github.com/g-plane/wasm-language-tools/"; + changelog = "https://github.com/g-plane/wasm-language-tools/releases/tag/v${version}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ethancedwards8 ]; + mainProgram = "wat_server"; + }; +}