nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 32 lines 731 B view raw
1{ 2 lib, 3 buildDunePackage, 4 fetchpatch, 5 ocaml, 6 bitstring, 7 ppxlib, 8 ounit, 9}: 10 11buildDunePackage { 12 pname = "ppx_bitstring"; 13 inherit (bitstring) version src; 14 15 patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch { 16 url = "https://github.com/xguerin/bitstring/commit/b42d4924cbb5ec5fd5309e6807852b63f456f35d.patch"; 17 hash = "sha256-wtpSnGOzIUTmB3LhyHGopecy7F/5SYFOwaR6eReV+6g="; 18 }); 19 20 buildInputs = [ 21 bitstring 22 ppxlib 23 ]; 24 25 doCheck = lib.versionAtLeast ocaml.version "4.08"; 26 checkInputs = [ ounit ]; 27 28 meta = bitstring.meta // { 29 description = "Bitstrings and bitstring matching for OCaml - PPX extension"; 30 broken = lib.versionOlder ppxlib.version "0.18.0"; 31 }; 32}