mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
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
|
||||
, 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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user