1{ lib, buildDunePackage, ocaml
2, bitstring, ppxlib
3, ounit
4}:
5
6if lib.versionOlder ppxlib.version "0.18.0"
7then throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
8else
9
10buildDunePackage rec {
11 pname = "ppx_bitstring";
12 inherit (bitstring) version src;
13
14 duneVersion = "3";
15
16 buildInputs = [ bitstring ppxlib ];
17
18 doCheck = lib.versionAtLeast ocaml.version "4.08";
19 checkInputs = [ ounit ];
20
21 meta = bitstring.meta // {
22 description = "Bitstrings and bitstring matching for OCaml - PPX extension";
23 };
24}