crun: 1.8.3 -> 1.8.4
[NixPkgs.git] / pkgs / tools / networking / termshark / default.nix
blob0aa01f69bd601910b4126a26cd02f0351a56877f
1 { lib, fetchFromGitHub, makeWrapper, buildGoModule, wireshark-cli }:
3 buildGoModule rec {
4   pname = "termshark";
5   version = "2.4.0";
7   src = fetchFromGitHub {
8     owner = "gcla";
9     repo = "termshark";
10     rev = "v${version}";
11     sha256 = "sha256-qq7BDGprRkWKRMJiVnqPeTwtHd3tea9dPE8RIPL2YVI=";
12   };
14   nativeBuildInputs = [ makeWrapper ];
15   buildInputs = [ wireshark-cli ];
17   vendorSha256 = "sha256-C9XOiNjo+TZ+erdnypRhhfpbuBhB3yEqNpbtwjEv14g=";
19   doCheck = false;
21   postFixup = ''
22     wrapProgram $out/bin/termshark --prefix PATH : ${lib.makeBinPath [ wireshark-cli ]}
23   '';
25   ldflags = [
26     "-X github.com/gcla/termshark.Version=${version}"
27   ];
29   meta = with lib; {
30     homepage = "https://termshark.io/";
31     description = "A terminal UI for wireshark-cli, inspired by Wireshark";
32     license = licenses.mit;
33     maintainers = with maintainers; [ winpat ];
34   };