mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #193301 from kilimnik/shell-format-dependency
This commit is contained in:
commit
943134ccfc
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user