at 24.05-pre 38 lines 754 B view raw
1{ lib, buildDunePackage, fetchurl 2, ppx_cstruct 3, cstruct 4, ounit 5}: 6 7buildDunePackage rec { 8 pname = "pcap-format"; 9 version = "0.6.0"; 10 11 minimalOCamlVersion = "4.08"; 12 duneVersion = "3"; 13 14 src = fetchurl { 15 url = "https://github.com/mirage/ocaml-pcap/releases/download/v${version}/${pname}-${version}.tbz"; 16 hash = "sha256-LUjy8Xm6VsnMq1FHKzmJg7uorkTv7cOTsoLwmtNHkaY="; 17 }; 18 19 buildInputs = [ 20 ppx_cstruct 21 ]; 22 23 propagatedBuildInputs = [ 24 cstruct 25 ]; 26 27 doCheck = true; 28 checkInputs = [ 29 ounit 30 ]; 31 32 meta = with lib; { 33 description = "Decode and encode PCAP (packet capture) files"; 34 homepage = "https://mirage.github.io/ocaml-pcap"; 35 license = licenses.isc; 36 maintainers = [ maintainers.sternenseemann ]; 37 }; 38}