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 src;
16 buildInputs = [ bitstring ppxlib ];
18 doCheck = lib.versionAtLeast ocaml.version "4.08";
19 checkInputs = [ ounit ];
21 meta = bitstring.meta // {
22 description = "Bitstrings and bitstring matching for OCaml - PPX extension";