2020-12-29 22:44:18 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2023-03-27 04:54:04 +00:00
|
|
|
, ppx_cstruct
|
|
|
|
, cstruct
|
|
|
|
, ounit
|
2020-12-29 22:44:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pcap-format";
|
2023-03-27 04:54:04 +00:00
|
|
|
version = "0.6.0";
|
2020-12-29 22:44:18 +00:00
|
|
|
|
2023-03-27 04:54:04 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
2020-12-29 22:44:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-03-27 04:54:04 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-pcap/releases/download/v${version}/${pname}-${version}.tbz";
|
|
|
|
hash = "sha256-LUjy8Xm6VsnMq1FHKzmJg7uorkTv7cOTsoLwmtNHkaY=";
|
2020-12-29 22:44:18 +00:00
|
|
|
};
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
buildInputs = [
|
2020-12-29 22:44:18 +00:00
|
|
|
ppx_cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2020-12-29 22:44:18 +00:00
|
|
|
ounit
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Decode and encode PCAP (packet capture) files";
|
|
|
|
homepage = "https://mirage.github.io/ocaml-pcap";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|