nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 763 B view raw
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 postPatch = '' 40 substituteInPlace graphql-cohttp/src/graphql_websocket.ml \ 41 --replace-fail "~flush:true ()" "~version:\`HTTP_1_1 ()" 42 ''; 43 44 meta = graphql.meta // { 45 description = "Run GraphQL servers with cohttp"; 46 }; 47 48}