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