2022-01-22 12:20:39 +01:00
|
|
|
{ lib, stdenv, fetchFromGitLab, libpcap }:
|
2016-01-04 21:13:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pcapc";
|
2022-01-22 12:20:39 +01:00
|
|
|
version = "1.0.1";
|
2016-01-04 21:13:05 +01:00
|
|
|
|
2022-01-22 12:20:39 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "post-factum";
|
|
|
|
repo = pname;
|
2017-03-02 01:01:42 +01:00
|
|
|
rev = "v${version}";
|
2022-01-22 12:20:39 +01:00
|
|
|
hash = "sha256-oDg9OSvi9aQsZ2SQm02NKAcppE0w5SGZaI13gdp7gv4=";
|
2016-01-04 21:13:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
|
2022-01-22 12:20:39 +01:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2016-01-04 21:13:05 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-01-22 12:20:39 +01:00
|
|
|
homepage = "https://gitlab.com/post-factum/pcapc";
|
2016-01-04 21:13:05 +01:00
|
|
|
description = "Compile libpcap filter expressions into BPF opcodes";
|
2022-01-22 12:20:39 +01:00
|
|
|
license = licenses.gpl3Only;
|
2016-01-04 21:13:05 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|