Merge pull request #193301 from kilimnik/shell-format-dependency

This commit is contained in:
Sandro 2022-09-28 22:04:10 +02:00 committed by GitHub
commit 943134ccfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@
, clojure-lsp
, alejandra
, millet
, shfmt
}:
let
@ -1088,6 +1089,14 @@ let
version = "7.1.0";
sha256 = "09z72mdr5bfdcb67xyzlv7lb9vyjlc3k9ackj4jgixfk40c68cnj";
};
nativeBuildInputs = [ jq moreutils ];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."shellformat.path".default = "${shfmt}/bin/shfmt"' package.json | sponge package.json
'';
meta = with lib; {
downloadPage = "https://marketplace.visualstudio.com/items?itemName=foxundermoon.shell-format";
homepage = "https://github.com/foxundermoon/vs-shell-format";