Merge pull request #299929 from drupol/vscode-extensions/tinymist/init

vscode-extensions.myriad-dreamin.tinymist: init at 0.11.1
This commit is contained in:
Pol Dellaiera 2024-03-29 10:48:10 +01:00 committed by GitHub
commit 8a3e771508
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 34 additions and 0 deletions

View File

@ -20,6 +20,7 @@
, millet
, craftos-pc
, shfmt
, tinymist
, typst-lsp
, typst-preview
, autoPatchelfHook
@ -3169,6 +3170,37 @@ let
};
};
myriad-dreamin.tinymist = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "tinymist";
publisher = "myriad-dreamin";
# Please update the corresponding binary (tinymist) when updating
# this extension.
version = "0.11.1";
sha256 = "sha256-jyZBnT8UW94TVnZKZna1cJa/UIj+DwYwlAbU4pnaf04=";
};
nativeBuildInputs = [ jq moreutils ];
buildInputs = [
tinymist
];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."tinymist.serverPath".default = "${lib.getExe tinymist}"' package.json | sponge package.json
'';
meta = {
changelog = "https://marketplace.visualstudio.com/items/myriad-dreamin.tinymist/changelog";
description = "A VSCode extension for providing an integration solution for Typst";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=myriad-dreamin.tinymist";
homepage = "https://github.com/myriad-dreamin/tinymist";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.drupol ];
};
};
naumovs.color-highlight = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "color-highlight";

View File

@ -11,6 +11,8 @@
rustPlatform.buildRustPackage rec {
pname = "tinymist";
# Please update the corresponding vscode extension when updating
# this derivation.
version = "0.11.1";
src = fetchFromGitHub {