Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchFromGitHub, 5 base_quickcheck ? null, 6 capnproto, 7 ocplib-endian, 8 ounit2, 9 res, 10 result, 11 stdint, 12 stdio, 13}: 14 15buildDunePackage rec { 16 pname = "capnp"; 17 version = "3.6.0"; 18 19 minimalOCamlVersion = "4.08"; 20 21 src = fetchFromGitHub { 22 owner = "capnproto"; 23 repo = "capnp-ocaml"; 24 rev = "v${version}"; 25 hash = "sha256-G4B1llsHnGcuGIarDB248QMaRBvS47IEQB5B93wY7nA="; 26 }; 27 28 nativeBuildInputs = [ 29 capnproto 30 ]; 31 32 buildInputs = [ 33 stdio 34 ]; 35 36 propagatedBuildInputs = [ 37 ocplib-endian 38 res 39 result 40 stdint 41 ]; 42 43 checkInputs = [ 44 base_quickcheck 45 ounit2 46 ]; 47 48 doCheck = true; 49 50 meta = { 51 description = "OCaml code generation plugin for the Cap'n Proto serialization framework"; 52 homepage = "https://github.com/capnproto/capnp-ocaml"; 53 changelog = "https://github.com/capnproto/capnp-ocaml/blob/${version}/CHANGES.md"; 54 license = lib.licenses.bsd2; 55 maintainers = with lib.maintainers; [ sixstring982 ]; 56 }; 57}