mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
23 lines
522 B
Nix
23 lines
522 B
Nix
{ 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";
|
|
};
|
|
}
|