Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 24 lines 532 B view raw
1{ lib, buildDunePackage, ocaml 2, bitstring, ppxlib 3, ounit 4}: 5 6if lib.versionOlder 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 src; 13 14 duneVersion = "3"; 15 16 buildInputs = [ bitstring ppxlib ]; 17 18 doCheck = lib.versionAtLeast ocaml.version "4.08"; 19 checkInputs = [ ounit ]; 20 21 meta = bitstring.meta // { 22 description = "Bitstrings and bitstring matching for OCaml - PPX extension"; 23 }; 24}