34 lines
774 B
Nix
34 lines
774 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|