vscode-extensions.asciidoctor.asciidoctor-vscode: move to a directory

This commit is contained in:
superherointj 2024-04-11 09:37:40 -03:00
parent 2745c03b3f
commit f6d6f32fab
2 changed files with 28 additions and 22 deletions

View File

@ -0,0 +1,27 @@
{
asciidoctor,
lib,
vscode-utils,
}:
vscode-utils.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 = {
license = lib.licenses.mit;
};
}

View File

@ -5,7 +5,6 @@
, fetchurl
, callPackage
, vscode-utils
, asciidoctor
, python3Packages
, jdk
, llvmPackages
@ -356,27 +355,7 @@ 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 = {
license = lib.licenses.mit;
};
};
asciidoctor.asciidoctor-vscode = callPackage ./asciidoctor.asciidoctor-vscode { };
asdine.cue = buildVscodeMarketplaceExtension {
mktplcRef = {