teamspeak5_client: 5.0.0-beta77 -> 6.0.0-beta2; teamspeak refactors (#377748)
[NixPkgs.git] / pkgs / applications / editors / vscode / extensions / b4dm4n.vscode-nixpkgs-fmt / default.nix
blob6edcaea67a7d9e7ef16404e0a69180042aa6f89d
2   vscode-utils,
3   jq,
4   lib,
5   moreutils,
6   nixpkgs-fmt,
7 }:
9 vscode-utils.buildVscodeMarketplaceExtension {
10   mktplcRef = {
11     name = "nixpkgs-fmt";
12     publisher = "B4dM4n";
13     version = "0.0.1";
14     hash = "sha256-vz2kU36B1xkLci2QwLpl/SBEhfSWltIDJ1r7SorHcr8=";
15   };
16   nativeBuildInputs = [
17     jq
18     moreutils
19   ];
20   postInstall = ''
21     cd "$out/$installPrefix"
22     jq '.contributes.configuration.properties."nixpkgs-fmt.path".default = "${nixpkgs-fmt}/bin/nixpkgs-fmt"' package.json | sponge package.json
23   '';
24   meta = {
25     license = lib.licenses.mit;
26   };