2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libpcap, cmake }:
|
2016-01-04 21:13:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pcapc";
|
2017-03-02 01:01:42 +01:00
|
|
|
version = "1.0.0";
|
2016-01-04 21:13:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-03-02 01:01:42 +01:00
|
|
|
sha256 = "137crs0bb7kh9a8p9g168yj2jrp0h3j3073nwh31jy4nk0g5hlfp";
|
|
|
|
rev = "v${version}";
|
2016-01-04 21:13:05 +01:00
|
|
|
repo = "pcapc";
|
|
|
|
owner = "pfactum";
|
|
|
|
};
|
|
|
|
|
2017-03-02 01:01:42 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-01-04 21:13:05 +01:00
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/pfactum/pcapc";
|
2016-01-04 21:13:05 +01:00
|
|
|
description = "Compile libpcap filter expressions into BPF opcodes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|