vscode-extensions.mgt19937.typst-preview: move to a directory
This commit is contained in:
parent
6badd9fe84
commit
4e210b2a3b
@ -15,7 +15,6 @@
|
||||
, shellcheck
|
||||
, moreutils
|
||||
, typst-lsp
|
||||
, typst-preview
|
||||
, autoPatchelfHook
|
||||
, zlib
|
||||
, stdenv
|
||||
@ -2630,35 +2629,7 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
# Keep pkgs/by-name/ty/typst-preview/package.nix in sync with this
|
||||
# extension
|
||||
mgt19937.typst-preview = buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "typst-preview";
|
||||
publisher = "mgt19937";
|
||||
version = "0.11.4";
|
||||
hash = "sha256-GwlzFphZmP87pLys01+PWTv13imcdGjunCMH6atz9xs=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
typst-preview
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ jq moreutils ];
|
||||
|
||||
postInstall = ''
|
||||
cd "$out/$installPrefix"
|
||||
jq '.contributes.configuration.properties."typst-preview.executable".default = "${lib.getExe typst-preview}"' package.json | sponge package.json
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Typst Preview is an extension for previewing your Typst files in vscode instantly";
|
||||
downloadPage = "https://marketplace.visualstudio.com/items?itemName=mgt19937.typst-preview";
|
||||
homepage = "https://github.com/Enter-tainer/typst-preview-vscode";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.drupol ];
|
||||
};
|
||||
};
|
||||
mgt19937.typst-preview = callPackage ./mgt19937.typst-preview { };
|
||||
|
||||
mhutchie.git-graph = buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Keep pkgs/by-name/ty/typst-preview/package.nix in sync with this extension
|
||||
|
||||
{
|
||||
vscode-utils,
|
||||
lib,
|
||||
jq,
|
||||
moreutils,
|
||||
typst-preview,
|
||||
}:
|
||||
|
||||
vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "typst-preview";
|
||||
publisher = "mgt19937";
|
||||
version = "0.11.4";
|
||||
hash = "sha256-GwlzFphZmP87pLys01+PWTv13imcdGjunCMH6atz9xs=";
|
||||
};
|
||||
|
||||
buildInputs = [ typst-preview ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
moreutils
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
cd "$out/$installPrefix"
|
||||
jq '.contributes.configuration.properties."typst-preview.executable".default = "${lib.getExe typst-preview}"' package.json | sponge package.json
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Typst Preview is an extension for previewing your Typst files in vscode instantly";
|
||||
downloadPage = "https://marketplace.visualstudio.com/items?itemName=mgt19937.typst-preview";
|
||||
homepage = "https://github.com/Enter-tainer/typst-preview-vscode";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.drupol ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user