depot/third_party/nixpkgs/pkgs/by-name/dm/dmarc-report-converter/package.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

40 lines
893 B
Nix

{ 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";
};
}