Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 ocaml-crunch, 5 astring, 6 cohttp, 7 digestif, 8 graphql, 9 ocplib-endian, 10 alcotest, 11 cohttp-lwt-unix, 12 graphql-lwt, 13}: 14 15buildDunePackage rec { 16 pname = "graphql-cohttp"; 17 18 inherit (graphql) version src; 19 20 duneVersion = "3"; 21 22 nativeBuildInputs = [ ocaml-crunch ]; 23 propagatedBuildInputs = [ 24 astring 25 cohttp 26 digestif 27 graphql 28 ocplib-endian 29 ]; 30 31 checkInputs = lib.optionals doCheck [ 32 alcotest 33 cohttp-lwt-unix 34 graphql-lwt 35 ]; 36 37 doCheck = true; 38 39 meta = graphql.meta // { 40 description = "Run GraphQL servers with cohttp"; 41 }; 42 43}