From bcea841e10e134d5969b8816d032fd6cd1edd6b8 Mon Sep 17 00:00:00 2001 From: Bela Stoyan Date: Wed, 10 Nov 2021 10:10:47 +0100 Subject: [PATCH] vscode-extensions.valentjn.vscode-ltex: init at 13.0.0 (#145001) Co-authored-by: be7a Co-authored-by: Sandro --- pkgs/misc/vscode-extensions/default.nix | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkgs/misc/vscode-extensions/default.nix b/pkgs/misc/vscode-extensions/default.nix index 10fe88c06f11..2da7d23e0af0 100644 --- a/pkgs/misc/vscode-extensions/default.nix +++ b/pkgs/misc/vscode-extensions/default.nix @@ -1,6 +1,7 @@ { config , lib , buildEnv +, fetchurl , callPackage , vscode-utils , asciidoctor @@ -1609,6 +1610,34 @@ let vadimcn.vscode-lldb = callPackage ./vscode-lldb { }; + valentjn.vscode-ltex = vscode-utils.buildVscodeMarketplaceExtension rec { + mktplcRef = { + name = "vscode-ltex"; + publisher = "valentjn"; + version = "13.0.0"; + }; + + vsix = fetchurl { + name = "${mktplcRef.publisher}-${mktplcRef.name}.zip"; + url = "https://github.com/valentjn/vscode-ltex/releases/download/${mktplcRef.version}/vscode-ltex-${mktplcRef.version}-offline-linux-x64.vsix"; + sha256 = "6db4846dee4e394f7bcfb7e29520d45d6bc1534482ba73cf40cd5edf3f6ec266"; + }; + + nativeBuildInputs = [ jq moreutils ]; + + buildInputs = [ jdk ]; + + postInstall = '' + cd "$out/$installPrefix" + jq '.contributes.configuration.properties."ltex.java.path".default = "${jdk}"' package.json | sponge package.json + ''; + + meta = with lib; { + license = licenses.mpl20; + maintainers = [ maintainers._0xbe7a ]; + }; + }; + viktorqvarfordt.vscode-pitch-black-theme = buildVscodeMarketplaceExtension { mktplcRef = { name = "vscode-pitch-black-theme";