Unverified Commit ca19b872 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

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

parents baa60318 ad337cf7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+12 −1
Original line number Diff line number Diff line
@@ -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";