nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8buildGoModule rec {
9 pname = "tlsinfo";
10 version = "0.1.48";
11
12 src = fetchFromGitHub {
13 owner = "paepckehh";
14 repo = "tlsinfo";
15 tag = "v${version}";
16 hash = "sha256-1483Y1SoAVsXIjpa1CbOvVQsOol6adoQD9PCxHgSgU4=";
17 };
18
19 vendorHash = "sha256-wHCHj7/DBzW0m16aXdQBjPRKjIlf2iab1345ud+ulVQ=";
20
21 ldflags = [
22 "-s"
23 "-w"
24 ];
25
26 passthru.updateScript = nix-update-script { };
27
28 meta = {
29 changelog = "https://github.com/paepckehh/tlsinfo/releases/tag/v${version}";
30 homepage = "https://paepcke.de/tlsinfo";
31 description = "Tool to analyze and troubleshoot TLS connections";
32 license = lib.licenses.bsd3;
33 mainProgram = "tlsinfo";
34 maintainers = with lib.maintainers; [ paepcke ];
35 };
36}