2021-01-09 10:05:03 +00:00
|
|
|
{ lib, buildDunePackage, ocaml
|
|
|
|
, bitstring, ppxlib
|
|
|
|
, ounit
|
|
|
|
}:
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
if lib.versionOlder ppxlib.version "0.18.0"
|
2021-03-19 17:17:44 +00:00
|
|
|
then throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
|
|
|
|
else
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_bitstring";
|
|
|
|
inherit (bitstring) version useDune2 src;
|
|
|
|
|
|
|
|
buildInputs = [ bitstring ppxlib ];
|
|
|
|
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
meta = bitstring.meta // {
|
|
|
|
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
|
|
|
|
};
|
|
|
|
}
|