diff --git a/pkgs/applications/editors/vscode/extensions/gplane.wasm-language-tools/default.nix b/pkgs/applications/editors/vscode/extensions/gplane.wasm-language-tools/default.nix index 5fe3da3cabb0..19546d9bd0ca 100644 --- a/pkgs/applications/editors/vscode/extensions/gplane.wasm-language-tools/default.nix +++ b/pkgs/applications/editors/vscode/extensions/gplane.wasm-language-tools/default.nix @@ -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"; diff --git a/pkgs/by-name/wa/wasm-language-tools/package.nix b/pkgs/by-name/wa/wasm-language-tools/package.nix index 362d3f2efad0..028de3651040 100644 --- a/pkgs/by-name/wa/wasm-language-tools/package.nix +++ b/pkgs/by-name/wa/wasm-language-tools/package.nix @@ -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";