mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
vscode-extensions.foxundermoon.shell-format: move to a directory
This commit is contained in:
parent
e62a408834
commit
6badd9fe84
@ -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 = {
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user