ocamlPackages.pcap-format: 0.5.2 → 0.6.0

This commit is contained in:
Vincent Laporte 2023-03-27 06:54:04 +02:00
parent ae8da65cd7
commit 37d68dd8e7
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,36 +1,32 @@
{ lib, buildDunePackage, fetchurl { lib, buildDunePackage, fetchurl
, ppx_cstruct, ppx_tools , ppx_cstruct
, cstruct, ounit, mmap, stdlib-shims , cstruct
, ounit
}: }:
buildDunePackage rec { buildDunePackage rec {
pname = "pcap-format"; pname = "pcap-format";
version = "0.5.2"; version = "0.6.0";
minimumOCamlVersion = "4.03"; minimalOCamlVersion = "4.08";
duneVersion = "3";
# due to cstruct
useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/ocaml-pcap/releases/download/${version}/${pname}-${version}.tbz"; url = "https://github.com/mirage/ocaml-pcap/releases/download/v${version}/${pname}-${version}.tbz";
sha256 = "14c5rpgglyz41jic0fg0xa22d2w1syb86kva22y9fi7aqj9vm31f"; hash = "sha256-LUjy8Xm6VsnMq1FHKzmJg7uorkTv7cOTsoLwmtNHkaY=";
}; };
buildInputs = [ buildInputs = [
ppx_tools
ppx_cstruct ppx_cstruct
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
cstruct cstruct
stdlib-shims
]; ];
doCheck = true; doCheck = true;
checkInputs = [ checkInputs = [
ounit ounit
mmap
]; ];
meta = with lib; { meta = with lib; {