nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 28 lines 746 B view raw
1{ lib, buildOcaml, fetchurl, ocaml, type_conv }: 2 3if lib.versionAtLeast ocaml.version "4.06" 4then throw "bin_prot-112.24.00 is not available for OCaml ${ocaml.version}" 5else 6 7buildOcaml rec { 8 name = "bin_prot"; 9 version = "112.24.00"; 10 11 minimumSupportedOcamlVersion = "4.00"; 12 13 src = fetchurl { 14 url = "https://github.com/janestreet/bin_prot/archive/${version}.tar.gz"; 15 sha256 = "dc0c978a825c7c123990af3317637c218f61079e6f35dc878260651084f1adb4"; 16 }; 17 18 propagatedBuildInputs = [ type_conv ]; 19 20 hasSharedObjects = true; 21 22 meta = with lib; { 23 homepage = "https://github.com/janestreet/bin_prot"; 24 description = "Binary protocol generator "; 25 license = licenses.asl20; 26 maintainers = [ maintainers.ericbmerritt ]; 27 }; 28}