Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
916 B
Nix
43 lines
916 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
buildGoModule,
|
|
wireshark-cli,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "termshark";
|
|
version = "2.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gcla";
|
|
repo = "termshark";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-qq7BDGprRkWKRMJiVnqPeTwtHd3tea9dPE8RIPL2YVI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ wireshark-cli ];
|
|
|
|
vendorHash = "sha256-C9XOiNjo+TZ+erdnypRhhfpbuBhB3yEqNpbtwjEv14g=";
|
|
|
|
doCheck = false;
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/termshark --prefix PATH : ${lib.makeBinPath [ wireshark-cli ]}
|
|
'';
|
|
|
|
ldflags = [
|
|
"-X github.com/gcla/termshark.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://termshark.io/";
|
|
description = "Terminal UI for wireshark-cli, inspired by Wireshark";
|
|
mainProgram = "termshark";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ winpat ];
|
|
};
|
|
}
|