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";
|
2023-01-20 10:41:00 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ ounit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://github.com/inhabitedtype/ocaml-webmachine";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
description = "A REST toolkit for OCaml";
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|