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