mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
ec2bee2404
Simon passed away in December 2021. Simon, it was a pleasure to work with you, to learn things together and to share good times. It ended too soon. You will be missed.
36 lines
878 B
Nix
36 lines
878 B
Nix
{ lib, fetchFromGitHub, makeWrapper, buildGoModule, wireshark-cli }:
|
|
|
|
buildGoModule rec {
|
|
pname = "termshark";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gcla";
|
|
repo = "termshark";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ekIxKBnqGTIXncvSTItBL43WN5mdX5dxROWHXUtH3o8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ wireshark-cli ];
|
|
|
|
vendorSha256 = "sha256-16JPVgo3heJMjOHNOP13kyhRveQjF9h9kRznhSZM+ik=";
|
|
|
|
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 = "A terminal UI for wireshark-cli, inspired by Wireshark";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ winpat ];
|
|
};
|
|
}
|