1 { lib, libpcap, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
8 owner = "ZingerLittleBee";
11 hash = "sha256-Rnp2VNAi8BNbKqkGFoYUb4C5db5BS1P1cqpWlroTmdQ=";
14 LIBPCAP_LIBDIR = lib.makeLibraryPath [ libpcap ];
15 LIBPCAP_VER = libpcap.version;
17 cargoHash = "sha256-5vbv4w17DdaTKuF3vQOfv74I8hp2Zpsp40ZlF08qWlc=";
20 changelog = "https://github.com/ZingerLittleBee/netop/raw/v${version}/CHANGELOG.md";
21 description = "Network monitor using bpf";
22 homepage = "https://github.com/ZingerLittleBee/netop";
23 license = licenses.mit;
24 mainProgram = "netop";
25 maintainers = [ maintainers.marcusramberg ];
26 platforms = platforms.linux;