Merge pull request #277524 from Nebucatnetzer/dmarc-report-converter

dmarc-report-converter: init at 0.6.5
This commit is contained in:
Janik 2024-01-06 02:56:40 +01:00 committed by GitHub
commit d66de5ac88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -13024,6 +13024,12 @@
githubId = 77314501;
name = "Maurice Zhou";
};
Nebucatnetzer = {
email = "andreas+nixpkgs@zweili.ch";
github = "Nebucatnetzer";
githubId = 2287221;
name = "Andreas Zweili";
};
Necior = {
email = "adrian@sadlocha.eu";
github = "Necior";

View File

@ -0,0 +1,40 @@
{ lib
, buildGoModule
, dmarc-report-converter
, fetchFromGitHub
, runCommand
}:
buildGoModule rec {
pname = "dmarc-report-converter";
version = "0.6.5";
src = fetchFromGitHub {
owner = "tierpod";
repo = "dmarc-report-converter";
rev = "v${version}";
hash = "sha256-4rAQhZmqYldilCKomBfuyqS0vcUg5yS4nqp84XSjam4=";
};
vendorHash = null;
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
passthru.tests = {
simple = runCommand "${pname}-test" { } ''
${dmarc-report-converter}/bin/dmarc-report-converter -h > $out
'';
};
meta = with lib; {
description = "Convert DMARC report files from xml to human-readable formats";
homepage = "https://github.com/tierpod/dmarc-report-converter";
license = licenses.mit;
maintainers = with maintainers; [ Nebucatnetzer ];
mainProgram = "dmarc-report-converter";
};
}