nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, ocaml
2, bitstring, ppxlib
3, ounit
4}:
5
6if !lib.versionAtLeast ppxlib.version "0.18.0"
7then throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
8else
9
10buildDunePackage rec {
11 pname = "ppx_bitstring";
12 inherit (bitstring) version useDune2 src;
13
14 buildInputs = [ bitstring ppxlib ];
15
16 doCheck = lib.versionAtLeast ocaml.version "4.08";
17 checkInputs = [ ounit ];
18
19 meta = bitstring.meta // {
20 description = "Bitstrings and bitstring matching for OCaml - PPX extension";
21 };
22}