From 78ee829ac2d4ca202072f5ee102477d159bddeae Mon Sep 17 00:00:00 2001 From: Dan Theriault Date: Wed, 6 Mar 2024 22:50:04 -0500 Subject: [PATCH 1/2] maintainers: add dan-theriault --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e760f9a9d006..4365adf16f5b 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4348,6 +4348,13 @@ fingerprint = "4779 D1D5 3C97 2EAE 34A5 ED3D D8AF C4BF 0567 0F9D"; }]; }; + dan-theriault = { + email = "nix@theriault.codes"; + github = "Dan-Theriault"; + githubId = 13945563; + matrix = "@dan:matrix.org"; + name = "Daniel Theriault"; + }; dariof4 = { name = "dariof4"; email = "dazedtank@gmail.com"; From fd234d5ccc0d133dcee9f337acd8f74927cefd0f Mon Sep 17 00:00:00 2001 From: Dan Theriault Date: Wed, 3 Apr 2024 19:52:28 -0400 Subject: [PATCH 2/2] 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. --- pkgs/by-name/hu/hujsonfmt/package.nix | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/hu/hujsonfmt/package.nix diff --git a/pkgs/by-name/hu/hujsonfmt/package.nix b/pkgs/by-name/hu/hujsonfmt/package.nix new file mode 100644 index 000000000000..9c1884feb60e --- /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 ]; + }; +}