2020-04-24 23:36:52 +00:00
|
|
|
{ buildDunePackage
|
2022-12-28 21:21:41 +00:00
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, astring
|
|
|
|
, base64
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmdliner
|
2022-12-28 21:21:41 +00:00
|
|
|
, fmt
|
|
|
|
, httpaf
|
|
|
|
, httpaf-lwt-unix
|
2020-04-24 23:36:52 +00:00
|
|
|
, logs
|
|
|
|
, magic-mime
|
2022-12-28 21:21:41 +00:00
|
|
|
, mirage-crypto
|
|
|
|
, mtime
|
|
|
|
, multipart-form-data
|
|
|
|
, ptime
|
|
|
|
, re
|
|
|
|
, rock
|
|
|
|
, tyxml
|
|
|
|
, uri
|
|
|
|
, yojson
|
|
|
|
, alcotest-lwt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
buildDunePackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "opium";
|
2022-12-28 21:21:41 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
inherit (rock) src version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astring
|
|
|
|
base64
|
|
|
|
cmdliner
|
|
|
|
fmt
|
|
|
|
httpaf
|
|
|
|
httpaf-lwt-unix
|
|
|
|
logs
|
|
|
|
magic-mime
|
|
|
|
mirage-crypto
|
|
|
|
mtime
|
|
|
|
multipart-form-data
|
|
|
|
ptime
|
|
|
|
re
|
|
|
|
rock
|
|
|
|
tyxml
|
|
|
|
uri
|
|
|
|
yojson
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
alcotest-lwt
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml web framework";
|
|
|
|
homepage = "https://github.com/rgrinberg/opium";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.pmahoney ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|