From a5d0a7e39000e5ba85556d503af61eea8c95f74b Mon Sep 17 00:00:00 2001 From: Vincent Palmer Date: Fri, 25 Oct 2024 15:26:52 +0200 Subject: [PATCH 1/2] go-dnscollector: init at 1.1.0 Signed-off-by: Vincent Palmer --- pkgs/by-name/go/go-dnscollector/package.nix | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/go/go-dnscollector/package.nix diff --git a/pkgs/by-name/go/go-dnscollector/package.nix b/pkgs/by-name/go/go-dnscollector/package.nix new file mode 100644 index 000000000000..be6cda25e8cc --- /dev/null +++ b/pkgs/by-name/go/go-dnscollector/package.nix @@ -0,0 +1,26 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "go-dnscollector"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "dmachard"; + repo = "go-dnscollector"; + rev = "v${version}"; + sha256 = "sha256-+EE9miEm1sHxTHcQ+Zmnj5ljSisKtds9L+SLIvgIfb4="; # Replace with the actual SHA256 of the repo + }; + + # Set Go module dependencies + vendorHash = "sha256-Njv8EGPS45NpCs0+poBxVGWLHhH+mSZuI80kIpsijDQ="; + # Specify any subpackages if necessary + subPackages = [ "." ]; + + meta = with lib; { + description = "Ingesting, pipelining, and enhancing your DNS logs with usage indicators, security analysis, and additional metadata."; + homepage = "https://github.com/dmachard/go-dnscollector"; + license = licenses.mit; + maintainers = with maintainers; [ shift ]; + }; +} + From 249b23be312c765e61ae9c92d38be0b083197d2f Mon Sep 17 00:00:00 2001 From: Vincent Palmer Date: Fri, 25 Oct 2024 16:48:27 +0200 Subject: [PATCH 2/2] maintainers: add shift Signed-off-by: Vincent Palmer --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/by-name/go/go-dnscollector/package.nix | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index fed81e98a0ff..5a116984d0e9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -19721,6 +19721,12 @@ github = "shhht"; githubId = 118352823; }; + shift = { + name = "Vincent Palmer"; + email = "shift@someone.section.me"; + github = "shift"; + githubId = 1653; + }; shikanime = { name = "William Phetsinorath"; email = "deva.shikanime@protonmail.com"; diff --git a/pkgs/by-name/go/go-dnscollector/package.nix b/pkgs/by-name/go/go-dnscollector/package.nix index be6cda25e8cc..ab1d4a44da5e 100644 --- a/pkgs/by-name/go/go-dnscollector/package.nix +++ b/pkgs/by-name/go/go-dnscollector/package.nix @@ -1,4 +1,8 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ + lib, + buildGoModule, + fetchFromGitHub, +}: buildGoModule rec { pname = "go-dnscollector"; @@ -8,12 +12,11 @@ buildGoModule rec { owner = "dmachard"; repo = "go-dnscollector"; rev = "v${version}"; - sha256 = "sha256-+EE9miEm1sHxTHcQ+Zmnj5ljSisKtds9L+SLIvgIfb4="; # Replace with the actual SHA256 of the repo + sha256 = "sha256-+EE9miEm1sHxTHcQ+Zmnj5ljSisKtds9L+SLIvgIfb4="; }; - # Set Go module dependencies vendorHash = "sha256-Njv8EGPS45NpCs0+poBxVGWLHhH+mSZuI80kIpsijDQ="; - # Specify any subpackages if necessary + subPackages = [ "." ]; meta = with lib; { @@ -23,4 +26,3 @@ buildGoModule rec { maintainers = with maintainers; [ shift ]; }; } -