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:
parent
23e3724a11
commit
875e4abc7d
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue