1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

vsce/asciidoctor.asciidoctor-vscode: init at 2.8.9

This commit is contained in:
V 2021-06-12 03:47:38 +02:00 committed by Jonathan Ringer
parent 23e3724a11
commit 875e4abc7d

View file

@ -1,4 +1,4 @@
{ config, lib, buildEnv, callPackage, vscode-utils, nodePackages, jdk, llvmPackages_8, nixpkgs-fmt, jq, shellcheck }:
{ config, lib, buildEnv, callPackage, vscode-utils, asciidoctor, nodePackages, jdk, llvmPackages_8, nixpkgs-fmt, jq, shellcheck }:
let
inherit (vscode-utils) buildVscodeMarketplaceExtension;
@ -109,6 +109,28 @@ let
};
};
asciidoctor.asciidoctor-vscode = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "asciidoctor-vscode";
publisher = "asciidoctor";
version = "2.8.9";
sha256 = "1xkxx5i3nhd0dzqhhdmx0li5jifsgfhv0p5h7xwsscz3gzgsdcyb";
};
postPatch = ''
substituteInPlace dist/src/text-parser.js \
--replace "get('asciidoctor_command', 'asciidoctor')" \
"get('asciidoctor_command', '${asciidoctor}/bin/asciidoctor')"
substituteInPlace dist/src/commands/exportAsPDF.js \
--replace "get('asciidoctorpdf_command', 'asciidoctor-pdf')" \
"get('asciidoctorpdf_command', '${asciidoctor}/bin/asciidoctor-pdf')"
'';
meta = with lib; {
license = licenses.mit;
};
};
ms-python.vscode-pylance = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vscode-pylance";