vscode-extensions.foxundermoon.shell-format: move to a directory

This commit is contained in:
superherointj 2024-04-11 09:47:41 -03:00
parent e62a408834
commit 6badd9fe84
2 changed files with 34 additions and 23 deletions

View File

@ -14,7 +14,6 @@
, jq
, shellcheck
, moreutils
, shfmt
, typst-lsp
, typst-preview
, autoPatchelfHook
@ -1687,28 +1686,7 @@ let
};
};
foxundermoon.shell-format = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "shell-format";
publisher = "foxundermoon";
version = "7.2.5";
hash = "sha256-kfpRByJDcGY3W9+ELBzDOUMl06D/vyPlN//wPgQhByk=";
};
nativeBuildInputs = [ jq moreutils ];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."shellformat.path".default = "${shfmt}/bin/shfmt"' package.json | sponge package.json
'';
meta = {
downloadPage = "https://marketplace.visualstudio.com/items?itemName=foxundermoon.shell-format";
homepage = "https://github.com/foxundermoon/vs-shell-format";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dbirks ];
};
};
foxundermoon.shell-format = callPackage ./foxundermoon.shell-format { };
freebroccolo.reasonml = buildVscodeMarketplaceExtension {
meta = {

View File

@ -0,0 +1,33 @@
{
jq,
lib,
moreutils,
shfmt,
vscode-utils,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "shell-format";
publisher = "foxundermoon";
version = "7.2.5";
hash = "sha256-kfpRByJDcGY3W9+ELBzDOUMl06D/vyPlN//wPgQhByk=";
};
nativeBuildInputs = [
jq
moreutils
];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."shellformat.path".default = "${shfmt}/bin/shfmt"' package.json | sponge package.json
'';
meta = {
downloadPage = "https://marketplace.visualstudio.com/items?itemName=foxundermoon.shell-format";
homepage = "https://github.com/foxundermoon/vs-shell-format";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dbirks ];
};
}