at 23.11-beta 36 lines 721 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, libpcap 5, yascreen 6}: 7 8stdenv.mkDerivation rec { 9 pname = "bpfmon"; 10 version = "2.52"; 11 12 src = fetchFromGitHub { 13 owner = "bbonev"; 14 repo = "bpfmon"; 15 rev = "refs/tags/v${version}"; 16 hash = "sha256-W7OnrC+FCxMd4YbYiybjIvO0LT7Hr1/0Y3BQwItaTBs="; 17 }; 18 19 buildInputs = [ 20 libpcap 21 yascreen 22 ]; 23 24 makeFlags = [ 25 "PREFIX=$(out)" 26 ]; 27 28 meta = with lib; { 29 description = "BPF based visual packet rate monitor"; 30 homepage = "https://github.com/bbonev/bpfmon"; 31 changelog = "https://github.com/bbonev/bpfmon/releases/tag/v${version}"; 32 maintainers = with maintainers; [ arezvov ]; 33 license = licenses.gpl2Plus; 34 platforms = platforms.linux; 35 }; 36}