nixpkgs/pkgs/tools/networking/termshark/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

37 lines
905 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 ];
};
}