blob: 9d85b181a622d4ea4b8018d8c0080af2ffb47147 (
plain) (
blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ lib
, buildGoModule
, fetchFromGitHub
, git
, testers
, zlint
}:
buildGoModule rec {
pname = "zlint";
version = "3.4.0";
src = fetchFromGitHub {
owner = "zmap";
repo = "zlint";
rev = "v${version}";
leaveDotGit = true;
hash = "sha256-1T8WAWsivSEB2xVEM+GpWJuD3DGXPa9uNpuN6/ABsns=";
};
modRoot = "v3";
vendorHash = "sha256-OiHEyMHuSiWDB/1YRvAhErb1h/rFfXXVcagcP386doc=";
postPatch = ''
# Remove a package which is not declared in go.mod.
rm -rf v3/cmd/genTestCerts
'';
subPackages = [
"cmd/zlint"
"cmd/zlint-gtld-update"
];
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
checkInputs = [ git ];
preCheck = ''
# Test all targets.
unset subPackages
'';
passthru.tests.version = testers.testVersion {
package = zlint;
command = "zlint -version";
};
meta = with lib; {
description = "X.509 Certificate Linter focused on Web PKI standards and requirements";
longDescription = ''
ZLint is a X.509 certificate linter written in Go that checks for
consistency with standards (e.g. RFC 5280) and other relevant PKI
requirements (e.g. CA/Browser Forum Baseline Requirements).
'';
homepage = "https://github.com/zmap/zlint";
changelog = "https://github.com/zmap/zlint/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ baloo ];
};
}
|