Skip to content

Commit

Permalink
netop: init at 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed Jan 9, 2024
1 parent 3cb442f commit c1a73c1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/by-name/ne/netop/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, libpcap, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
pname = "netop";
version = "0.1.4";

src = fetchFromGitHub {
owner = "ZingerLittleBee";
repo = "netop";
rev = "v${version}";
hash = "sha256-Rnp2VNAi8BNbKqkGFoYUb4C5db5BS1P1cqpWlroTmdQ=";
};

LIBPCAP_LIBDIR = lib.makeLibraryPath [ libpcap ];
LIBPCAP_VER = libpcap.version;

cargoHash = "sha256-5vbv4w17DdaTKuF3vQOfv74I8hp2Zpsp40ZlF08qWlc=";

meta = with lib; {
changelog = "https://github.com/ZingerLittleBee/netop/raw/v${version}/CHANGELOG.md";
description = "A network monitor using bpf";
homepage = "https://github.com/ZingerLittleBee/netop";
license = licenses.mit;
mainProgram = "netop";
maintainers = [ maintainers.marcusramberg ];
platforms = platforms.linux;
};
}

0 comments on commit c1a73c1

Please sign in to comment.