Skip to content

Commit 723693d

Browse files
authored
wasm-language-tools: init at 0.3.2 (#383536)
2 parents 74423e7 + ee7fd66 commit 723693d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
versionCheckHook,
6+
nix-update-script,
7+
}:
8+
9+
rustPlatform.buildRustPackage rec {
10+
pname = "wasm-language-tools";
11+
version = "0.3.2";
12+
13+
src = fetchFromGitHub {
14+
owner = "g-plane";
15+
repo = "wasm-language-tools";
16+
tag = "v${version}";
17+
hash = "sha256-f1Mq+1gZZelN12rFTLJHOvdzDAbqufzT9+I6pkJdJMU=";
18+
};
19+
20+
useFetchCargoVendor = true;
21+
cargoHash = "sha256-P3sxAFZjAlgPrGrw3W+7ufflUz3/Xe7lTXygnSX5Q+4=";
22+
23+
nativeInstallCheckInputs = [ versionCheckHook ];
24+
versionCheckProgram = "${placeholder "out"}/bin/wat_server";
25+
versionCheckProgramArg = "--version";
26+
doInstallCheck = true;
27+
28+
passthru.updateScript = nix-update-script { };
29+
30+
meta = {
31+
description = "Language server and other tools for WebAssembly";
32+
homepage = "https://github.com/g-plane/wasm-language-tools/";
33+
changelog = "https://github.com/g-plane/wasm-language-tools/releases/tag/v${version}/CHANGELOG.md";
34+
license = lib.licenses.mit;
35+
maintainers = with lib.maintainers; [ ethancedwards8 ];
36+
mainProgram = "wat_server";
37+
};
38+
}

0 commit comments

Comments
 (0)