diff options
author | Dan Theriault <dan@theriault.codes> | 2024-04-03 19:52:28 -0400 |
---|---|---|
committer | Dan Theriault <dan@theriault.codes> | 2024-04-05 20:36:33 -0400 |
commit | fd234d5ccc0d133dcee9f337acd8f74927cefd0f (patch) | |
tree | 8bf400bae6973f29b658214e346a037cb2c67f42 /pkgs/by-name/hu | |
parent | 78ee829ac2d4ca202072f5ee102477d159bddeae (diff) |
hujsonfmt: init at 0-unstable-2022-12-23
Package Tailscale's formatter for HuJSON / JSON With Comments and trailing Commas (JWCC). Tailscale uses this format for its ACL configurations.
Diffstat (limited to 'pkgs/by-name/hu')
-rw-r--r-- | pkgs/by-name/hu/hujsonfmt/package.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/by-name/hu/hujsonfmt/package.nix b/pkgs/by-name/hu/hujsonfmt/package.nix new file mode 100644 index 0000000000000..9c1884feb60e0 --- /dev/null +++ b/pkgs/by-name/hu/hujsonfmt/package.nix @@ -0,0 +1,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 ]; + }; +} |