2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub
|
|
|
|
, cohttp, dispatch, ptime
|
|
|
|
, ounit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "webmachine";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "0.7.0";
|
2020-11-03 02:18:15 +00:00
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
|
|
|
repo = "ocaml-webmachine";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "03ynb1l2jjqba88m9r8m5hwlm8izpfp617r4vcab5kmdim1l2ffx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cohttp dispatch ptime ];
|
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
checkInputs = [ ounit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
description = "A REST toolkit for OCaml";
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|