1 { lib, buildDunePackage, ocaml
6 if lib.versionOlder ppxlib.version "0.18.0"
7 then throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
10 buildDunePackage rec {
11 pname = "ppx_bitstring";
12 inherit (bitstring) version useDune2 src;
14 buildInputs = [ bitstring ppxlib ];
16 doCheck = lib.versionAtLeast ocaml.version "4.08";
17 checkInputs = [ ounit ];
19 meta = bitstring.meta // {
20 description = "Bitstrings and bitstring matching for OCaml - PPX extension";