python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / ocaml-modules / pcap-format / default.nix
blobb8b93b7af56be25f9c5bc3fcf242812e178a7433
2   lib,
3   buildDunePackage,
4   fetchurl,
5   ppx_cstruct,
6   cstruct,
7   ounit,
8 }:
10 buildDunePackage rec {
11   pname = "pcap-format";
12   version = "0.6.0";
14   minimalOCamlVersion = "4.08";
15   duneVersion = "3";
17   src = fetchurl {
18     url = "https://github.com/mirage/ocaml-pcap/releases/download/v${version}/${pname}-${version}.tbz";
19     hash = "sha256-LUjy8Xm6VsnMq1FHKzmJg7uorkTv7cOTsoLwmtNHkaY=";
20   };
22   buildInputs = [
23     ppx_cstruct
24   ];
26   propagatedBuildInputs = [
27     cstruct
28   ];
30   doCheck = true;
31   checkInputs = [
32     ounit
33   ];
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   };