mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 06:27:43 +00:00
dmarc-report-converter: init at 0.6.5
This commit is contained in:
parent
73365029fd
commit
f01c62a920
40
pkgs/by-name/dm/dmarc-report-converter/package.nix
Normal file
40
pkgs/by-name/dm/dmarc-report-converter/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user