nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 33 lines 828 B view raw
1{ 2 lib, 3 libpcap, 4 rustPlatform, 5 fetchFromGitHub, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "netop"; 10 version = "0.1.4"; 11 12 src = fetchFromGitHub { 13 owner = "ZingerLittleBee"; 14 repo = "netop"; 15 rev = "v${version}"; 16 hash = "sha256-Rnp2VNAi8BNbKqkGFoYUb4C5db5BS1P1cqpWlroTmdQ="; 17 }; 18 19 LIBPCAP_LIBDIR = lib.makeLibraryPath [ libpcap ]; 20 LIBPCAP_VER = libpcap.version; 21 22 cargoHash = "sha256-WGwtRMARwRvcUflN3JYL32aib+IG1Q0j0D9BEfaiME4="; 23 24 meta = { 25 changelog = "https://github.com/ZingerLittleBee/netop/raw/v${version}/CHANGELOG.md"; 26 description = "Network monitor using bpf"; 27 homepage = "https://github.com/ZingerLittleBee/netop"; 28 license = lib.licenses.mit; 29 mainProgram = "netop"; 30 maintainers = [ lib.maintainers.marcusramberg ]; 31 platforms = lib.platforms.linux; 32 }; 33}