wasm-language-tools: VS Code ext in update script (#476372)

This commit is contained in:
Gaétan Lepage
2026-03-26 23:25:21 +00:00
committed by GitHub
2 changed files with 18 additions and 1 deletions
@@ -4,6 +4,12 @@
wasm-language-tools,
}:
# The update script for the wasm-language-tools package itself updates this
# package too, so we disable nixpkgs-update for this package to avoid sometimes
# accidentally updating just this package by itself.
# nixpkgs-update: no auto update
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
publisher = "gplane";
@@ -3,7 +3,9 @@
rustPlatform,
fetchFromGitHub,
versionCheckHook,
_experimental-update-script-combinators,
nix-update-script,
vscode-extension-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -23,7 +25,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
versionCheckProgram = "${placeholder "out"}/bin/wat_server";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
passthru.updateScript = _experimental-update-script-combinators.sequence [
(nix-update-script { })
(vscode-extension-update-script {
attrPath = "vscode-extensions.gplane.wasm-language-tools";
extraArgs = [
"--override-filename"
"pkgs/applications/editors/vscode/extensions/gplane.wasm-language-tools/default.nix"
];
})
];
meta = {
description = "Language server and other tools for WebAssembly";