-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
/
Copy pathpackage.nix
39 lines (32 loc) · 880 Bytes
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
lib,
buildGoModule,
dmarc-report-converter,
fetchFromGitHub,
testers,
}:
buildGoModule rec {
pname = "dmarc-report-converter";
version = "0.8.1";
src = fetchFromGitHub {
owner = "tierpod";
repo = "dmarc-report-converter";
rev = "v${version}";
hash = "sha256-j1uFPCyxLqO3BMxl/02wILj5HGag9qjxCTB8ZxZHEGo=";
};
vendorHash = null;
checkFlags = [ "-mod=vendor ./cmd/... ./pkg/..." ];
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
passthru.tests.version = testers.testVersion { package = dmarc-report-converter; };
meta = {
description = "Convert DMARC report files from xml to human-readable formats";
homepage = "https://github.com/tierpod/dmarc-report-converter";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.Nebucatnetzer ];
mainProgram = "dmarc-report-converter";
};
}