ocamlPackages.opium: init at 0.17.1
This commit is contained in:
parent
aa7fbe4d2e
commit
e485b10d3e
3 changed files with 76 additions and 0 deletions
30
pkgs/development/ocaml-modules/opium/default.nix
Normal file
30
pkgs/development/ocaml-modules/opium/default.nix
Normal 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
|
||||
];
|
||||
}
|
42
pkgs/development/ocaml-modules/opium_kernel/default.nix
Normal file
42
pkgs/development/ocaml-modules/opium_kernel/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue