wasm-language-tools: VS Code ext in update script (#476372)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user