2022-01-23 02:10:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, libpcap }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pcapc";
|
2022-01-23 02:10:13 +00:00
|
|
|
version = "1.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-23 02:10:13 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "post-factum";
|
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2022-01-23 02:10:13 +00:00
|
|
|
hash = "sha256-oDg9OSvi9aQsZ2SQm02NKAcppE0w5SGZaI13gdp7gv4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
|
2022-01-23 02:10:13 +00:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-01-23 02:10:13 +00:00
|
|
|
homepage = "https://gitlab.com/post-factum/pcapc";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Compile libpcap filter expressions into BPF opcodes";
|
2022-01-23 02:10:13 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|