vscode-extensions.mkhl.shfmt: init at 1.3.1 (#418951)

This commit is contained in:
Pol Dellaiera
2025-06-29 18:55:32 +02:00
committed by GitHub
2 changed files with 30 additions and 0 deletions
@@ -3245,6 +3245,8 @@ let
};
};
mkhl.shfmt = callPackage ./mkhl.shfmt { };
mongodb.mongodb-vscode = callPackage ./mongodb.mongodb-vscode { };
moshfeu.compare-folders = buildVscodeMarketplaceExtension {
@@ -0,0 +1,28 @@
{
lib,
vscode-utils,
jq,
shfmt,
moreutils,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "shfmt";
publisher = "mkhl";
version = "1.3.1";
hash = "sha256-V7pXPwabmUJLC/T0X4dsc52IZa7SaN70zd4mCjqk4X4=";
};
postInstall = ''
cd "$out/$installPrefix"
${lib.getExe jq} '.contributes.configuration.properties."shfmt.executablePath".default = "${lib.getExe shfmt}"' package.json | ${lib.getExe' moreutils "sponge"} package.json
'';
meta = {
description = "Extension uses shfmt to provide a formatter for shell script documents";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=mkhl.shfmt";
homepage = "https://codeberg.org/mkhl/vscode-shfmt";
license = lib.licenses.bsd0;
maintainers = [ lib.maintainers.therobot2105 ];
};
}