rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / netassert / default.nix
blobd226b5345681fc9b9dbaf6970e94b9ef457bb6cb
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "netassert";
8   version = "2.0.3";
10   src = fetchFromGitHub {
11     owner = "controlplaneio";
12     repo = "netassert";
13     rev = "v${version}";
14     hash = "sha256-mRKjo0AfnM+XTl7sQoGDyQoquXpD3xPJ6i3/3Dj2rhE=";
15   };
16   vendorHash = "sha256-9mvSfAd1m95eRwljGG68+tjiFObgt1EuakjwFfn9Obo=";
18   ldflags = [
19     "-s"
20     "-w"
21     "-X main.version=${src.rev}"
22   ];
24   postBuild = ''
25     mv $GOPATH/bin/{cli,netassert}
26   '';
28   meta = with lib; {
29     homepage = "https://github.com/controlplaneio/netassert";
30     changelog = "https://github.com/controlplaneio/netassert/blob/${src.rev}/CHANGELOG.md";
31     description = "A command line utility to test network connectivity between kubernetes objects";
32     longDescription = ''
33       NetAssert is a command line utility to test network connectivity between kubernetes objects.
34       It currently supports Deployment, Pod, Statefulset and Daemonset.
35       You can check the traffic flow between these objects or from these objects to a remote host or an IP address.
36     '';
37     license = licenses.asl20;
38     maintainers = with maintainers; [ jk ];
39     mainProgram = "netassert";
40   };