about summary refs log tree commit diff
path: root/pkgs/by-name/hu/hujsonfmt/package.nix
blob: 9c1884feb60e05587993139e01ae83216004af85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildGoModule, fetchFromGitHub }:

let
  inherit (lib) licenses maintainers;
in
buildGoModule {
  pname = "hujsonfmt";
  version = "0-unstable-2022-12-23";

  src = fetchFromGitHub {
    owner = "tailscale";
    repo = "hujson";
    rev = "20486734a56a3455c47994bf4942974d6f9969a0";
    hash = "sha256-j2HRs5zZ0jTIqWIRhHheO9eaGzMMkNuKXuhboq9KpB4=";
  };

  proxyVendor = true;
  vendorHash = "sha256-cvoj85BNnm/ZX1UnXKU2HjvjQkRZ9uN3U0BnD3DmiTE=";

  subPackages = [ "cmd/hujsonfmt" ];

  meta = {
    homepage = "https://tailscale.com";
    description = "Automatic formatter for HuJSON / JSON With Comments and trailing Commas (JWCC)";
    license = licenses.bsd3;
    mainProgram = "hujsonfmt";
    maintainers = with maintainers; [ dan-theriault ];
  };
}