1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/tools/networking/termshark/default.nix

35 lines
901 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, makeWrapper, buildGoModule, wireshark-cli }:
2019-05-07 16:26:10 +01:00
buildGoModule rec {
pname = "termshark";
2020-02-24 12:16:30 +00:00
version = "2.1.1";
2019-05-07 16:26:10 +01:00
src = fetchFromGitHub {
owner = "gcla";
repo = "termshark";
rev = "v${version}";
2020-02-24 12:16:30 +00:00
sha256 = "14h548apg3zvjvq6yy22hpw2ziy5vmwyr04vv59ls1mjg4qf2v8b";
2019-05-07 16:26:10 +01:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ wireshark-cli ];
2019-05-07 16:26:10 +01:00
2020-02-24 12:16:30 +00:00
modSha256 = "0lp4gky76di7as78421p3lsirfr7mic3z204ildvj6gf6d15svpr";
2019-05-07 16:26:10 +01:00
postFixup = ''
wrapProgram $out/bin/termshark --prefix PATH : ${stdenv.lib.makeBinPath [ wireshark-cli ]}
'';
buildFlagsArray = ''
-ldflags=
-X github.com/gcla/termshark.Version=${version}
'';
meta = with stdenv.lib; {
homepage = https://termshark.io/;
description = "A terminal UI for wireshark-cli, inspired by Wireshark";
license = licenses.mit;
2020-02-24 12:16:30 +00:00
maintainers = with maintainers; [ winpat elseym ];
2019-05-07 16:26:10 +01:00
};
}