2021-01-03 09:14:22 +00:00
|
|
|
{ lib, buildDunePackage, ocaml
|
|
|
|
, bitstring, ppxlib
|
|
|
|
, ounit
|
|
|
|
}:
|
|
|
|
|
2021-03-14 20:06:38 +00:00
|
|
|
if !lib.versionAtLeast ppxlib.version "0.18.0"
|
|
|
|
then throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
|
|
|
|
else
|
|
|
|
|
2021-01-03 09:14:22 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_bitstring";
|
|
|
|
inherit (bitstring) version useDune2 src;
|
|
|
|
|
|
|
|
buildInputs = [ bitstring ppxlib ];
|
|
|
|
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
checkInputs = [ ounit ];
|
|
|
|
|
|
|
|
meta = bitstring.meta // {
|
|
|
|
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
|
|
|
|
};
|
|
|
|
}
|