vscode-extensions.mkhl.shfmt: init at 1.3.1
This commit is contained in:
parent
598eafadf1
commit
de113bb486
@ -3241,6 +3241,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 ];
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user