summary refs log blame commit diff
path: root/pkgs/development/ocaml-modules/bitstring/ppx.nix
blob: 4d391d3458dc1b8f11fb4b4b00c9eda919953676 (plain) (tree)
1
2
3
4
5
6
7
8
9




                              



                                                                         












                                                                                
{ lib, buildDunePackage, ocaml
, bitstring, ppxlib
, ounit
}:

if !lib.versionAtLeast ppxlib.version "0.18.0"
then throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
else

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";
  };
}