vscode-extensions.asciidoctor.asciidoctor-vscode: move to a directory
This commit is contained in:
parent
2745c03b3f
commit
f6d6f32fab
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,7 +5,6 @@
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, callPackage
|
, callPackage
|
||||||
, vscode-utils
|
, vscode-utils
|
||||||
, asciidoctor
|
|
||||||
, python3Packages
|
, python3Packages
|
||||||
, jdk
|
, jdk
|
||||||
, llvmPackages
|
, llvmPackages
|
||||||
|
@ -356,27 +355,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
asciidoctor.asciidoctor-vscode = buildVscodeMarketplaceExtension {
|
asciidoctor.asciidoctor-vscode = callPackage ./asciidoctor.asciidoctor-vscode { };
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
asdine.cue = buildVscodeMarketplaceExtension {
|
asdine.cue = buildVscodeMarketplaceExtension {
|
||||||
mktplcRef = {
|
mktplcRef = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user