Commit eb930b09 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

vscode-extensions.mgt19937.typst-preview: remove package

parent 23184660
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3040,8 +3040,6 @@ let
        };
      };

      mgt19937.typst-preview = callPackage ./mgt19937.typst-preview { };

      mhutchie.git-graph = buildVscodeMarketplaceExtension {
        mktplcRef = {
          name = "git-graph";
@@ -5364,6 +5362,7 @@ let
    jakebecker.elixir-ls = throw "jakebecker.elixir-ls is deprecated in favor of elixir-lsp.vscode-elixir-ls"; # Added 2024-05-29
    jpoissonnier.vscode-styled-components = throw "jpoissonnier.vscode-styled-components is deprecated in favor of styled-components.vscode-styled-components"; # Added 2024-05-29
    matklad.rust-analyzer = throw "matklad.rust-analyzer is deprecated in favor of rust-lang.rust-analyzer"; # Added 2024-05-29
    mgt19937.typst-preview = throw "The features of 'typst-preview' have been consolidated to 'tinymist', an all-in-one language server for typst"; # Added 2024-07-07
    ms-vscode.go = throw "ms-vscode.go is deprecated in favor of golang.go"; # Added 2024-05-29
    ms-vscode.PowerShell = throw "ms-vscode.PowerShell is deprecated in favor of super.ms-vscode.powershell"; # Added 2024-05-29
    rioj7.commandOnAllFiles = throw "rioj7.commandOnAllFiles is deprecated in favor of rioj7.commandonallfiles"; # Added 2024-05-29
+0 −38
Original line number Diff line number Diff line
# Keep pkgs/by-name/ty/typst-preview/package.nix in sync with this extension

{
  vscode-utils,
  lib,
  jq,
  moreutils,
  typst-preview,
}:

vscode-utils.buildVscodeMarketplaceExtension {
  mktplcRef = {
    name = "typst-preview";
    publisher = "mgt19937";
    version = "0.11.7";
    hash = "sha256-70dVGoSBDKCtvn7xiC/gAh4OQ8nNDiI/M900r2zlOfU=";
  };

  buildInputs = [ typst-preview ];

  nativeBuildInputs = [
    jq
    moreutils
  ];

  postInstall = ''
    cd "$out/$installPrefix"
    jq '.contributes.configuration.properties."typst-preview.executable".default = "${lib.getExe typst-preview}"' package.json | sponge package.json
  '';

  meta = {
    description = "Typst Preview is an extension for previewing your Typst files in vscode instantly";
    downloadPage = "https://marketplace.visualstudio.com/items?itemName=mgt19937.typst-preview";
    homepage = "https://github.com/Enter-tainer/typst-preview-vscode";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.drupol ];
  };
}