1{ 2 lib, 3 buildDunePackage, 4 fetchFromGitHub, 5 cohttp, 6 dispatch, 7 ptime, 8 ounit, 9}: 10 11buildDunePackage rec { 12 pname = "webmachine"; 13 version = "0.7.0"; 14 duneVersion = "3"; 15 16 minimalOCamlVersion = "4.03"; 17 18 src = fetchFromGitHub { 19 owner = "inhabitedtype"; 20 repo = "ocaml-webmachine"; 21 rev = version; 22 sha256 = "03ynb1l2jjqba88m9r8m5hwlm8izpfp617r4vcab5kmdim1l2ffx"; 23 }; 24 25 propagatedBuildInputs = [ 26 cohttp 27 dispatch 28 ptime 29 ]; 30 31 checkInputs = [ ounit ]; 32 33 doCheck = true; 34 35 meta = { 36 homepage = "https://github.com/inhabitedtype/ocaml-webmachine"; 37 license = lib.licenses.bsd3; 38 description = "REST toolkit for OCaml"; 39 maintainers = [ lib.maintainers.vbgl ]; 40 }; 41 42}