ocamlPackages.opium: init at 0.17.1

This commit is contained in:
Patrick Mahoney 2019-06-01 20:37:44 -05:00 committed by Vincent Laporte
parent aa7fbe4d2e
commit e485b10d3e
3 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ buildDunePackage
, ppx_sexp_conv
, ppx_fields_conv
, cmdliner
, cohttp-lwt-unix
, logs
, magic-mime
, opium_kernel
, stringext
, alcotest
}:
buildDunePackage rec {
pname = "opium";
inherit (opium_kernel) version src meta minimumOCamlVersion;
doCheck = true;
buildInputs = [
ppx_sexp_conv ppx_fields_conv
alcotest
];
propagatedBuildInputs = [
opium_kernel cmdliner cohttp-lwt-unix magic-mime logs stringext
];
}

View file

@ -0,0 +1,42 @@
{ lib
, buildDunePackage
, fetchFromGitHub
, ppx_fields_conv
, ppx_sexp_conv
, cohttp-lwt
, ezjsonm
, hmap
}:
buildDunePackage rec {
pname = "opium_kernel";
version = "0.17.1";
minimumOCamlVersion = "4.04.1";
src = fetchFromGitHub {
owner = "rgrinberg";
repo = "opium";
rev = "v${version}";
sha256 = "03xzh0ik6k3c0yn1w1avph667vdagwclzimwwrlf9qdxnzxvcnp3";
};
doCheck = true;
buildInputs = [
ppx_sexp_conv ppx_fields_conv
];
propagatedBuildInputs = [
hmap cohttp-lwt ezjsonm
];
meta = {
description = "Sinatra like web toolkit for OCaml based on cohttp & lwt";
homepage = "https://github.com/rgrinberg/opium";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.pmahoney ];
};
}

View file

@ -553,6 +553,10 @@ let
opam-file-format = callPackage ../development/ocaml-modules/opam-file-format { };
opium = callPackage ../development/ocaml-modules/opium { };
opium_kernel = callPackage ../development/ocaml-modules/opium_kernel { };
opti = callPackage ../development/ocaml-modules/opti { };
optint = callPackage ../development/ocaml-modules/optint { };