diff options
author | Arthur Gautier <arthur.gautier@arista.com> | 2022-11-16 10:56:45 -0800 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2022-11-23 10:46:47 -0800 |
commit | 1462c3cc487e282988fa0a2747b021fb934f6cf6 (patch) | |
tree | 3f3b1cc14d9752f265c7cece019f66feb173fed3 /pkgs/tools/security/zlint | |
parent | fcccb8b89c8c8e7e7a633295468f35803b0f42a2 (diff) |
zlint: init at 3.4.0
Diffstat (limited to 'pkgs/tools/security/zlint')
-rw-r--r-- | pkgs/tools/security/zlint/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/security/zlint/default.nix b/pkgs/tools/security/zlint/default.nix new file mode 100644 index 0000000000000..4116e3bf71746 --- /dev/null +++ b/pkgs/tools/security/zlint/default.nix @@ -0,0 +1,30 @@ +{ buildGoModule, fetchFromGitHub, lib }: + +buildGoModule rec { + pname = "zlint"; + version = "3.4.0"; + + src = fetchFromGitHub { + owner = "zmap"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-l39GdfEKUAw5DQNjx6ZBgfGtengRlUUasm0G07kAA2A="; + }; + + modRoot = "v3"; + vendorHash = "sha256-OiHEyMHuSiWDB/1YRvAhErb1h/rFfXXVcagcP386doc="; + preBuild = '' + # not in the go.mod + rm -rf cmd/genTestCerts + ''; + + # Tests rely on git and we don't have the .git dir because modRoot is in a subdir + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/zmap/zlint/"; + license = licenses.asl20; + description = "X.509 Certificate Linter focused on Web PKI standards and requirements."; + maintainers = with maintainers; [ baloo ]; + }; +} |