nixpkgs-suyu/pkgs/development/ocaml-modules/opium_kernel/default.nix

44 lines
811 B
Nix
Raw Normal View History

2019-06-02 03:37:44 +02:00
{ lib
, buildDunePackage
, fetchurl
2019-06-02 03:37:44 +02:00
, ppx_fields_conv
, ppx_sexp_conv
, cohttp-lwt
, ezjsonm
, hmap
, sexplib
2019-06-02 03:37:44 +02:00
}:
buildDunePackage rec {
pname = "opium_kernel";
version = "0.18.0";
useDune2 = true;
2019-06-02 03:37:44 +02:00
minimumOCamlVersion = "4.04.1";
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;
buildInputs = [
2019-06-02 03:37:44 +02:00
ppx_sexp_conv ppx_fields_conv
];
propagatedBuildInputs = [
hmap cohttp-lwt ezjsonm sexplib
2019-06-02 03:37:44 +02:00
];
meta = {
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";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.pmahoney ];
2019-06-02 03:37:44 +02:00
};
}