2019-06-02 03:37:44 +02:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
2020-10-14 07:35:35 +02:00
|
|
|
, fetchurl
|
2019-06-02 03:37:44 +02:00
|
|
|
|
|
|
|
, ppx_fields_conv
|
|
|
|
, ppx_sexp_conv
|
|
|
|
|
|
|
|
, cohttp-lwt
|
|
|
|
, ezjsonm
|
|
|
|
, hmap
|
2020-10-14 07:35:35 +02:00
|
|
|
, sexplib
|
2019-06-02 03:37:44 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-10-14 07:35:35 +02:00
|
|
|
pname = "opium_kernel";
|
|
|
|
version = "0.18.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2019-06-02 03:37:44 +02:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04.1";
|
2020-10-14 07:35:35 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/rgrinberg/opium/releases/download/${version}/opium-${version}.tbz";
|
|
|
|
sha256 = "0a2y9gw55psqhqli3a5ps9mfdab8r46fnbj882r2sp366sfcy37q";
|
|
|
|
};
|
2019-06-02 03:37:44 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-10-14 07:35:35 +02:00
|
|
|
buildInputs = [
|
2019-06-02 03:37:44 +02:00
|
|
|
ppx_sexp_conv ppx_fields_conv
|
|
|
|
];
|
|
|
|
|
2020-10-14 07:35:35 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
hmap cohttp-lwt ezjsonm sexplib
|
2019-06-02 03:37:44 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2020-10-14 07:35:35 +02:00
|
|
|
description = "Sinatra like web toolkit for OCaml based on cohttp & lwt";
|
2019-06-02 03:37:44 +02:00
|
|
|
homepage = "https://github.com/rgrinberg/opium";
|
2020-10-14 07:35:35 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.pmahoney ];
|
2019-06-02 03:37:44 +02:00
|
|
|
};
|
|
|
|
}
|