about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/opium/default.nix
blob: b98d892696ec4a2350de37a037b80d350d463263 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ buildDunePackage
, lib
, fetchurl
, astring
, base64
, cmdliner
, fmt
, httpaf
, httpaf-lwt-unix
, logs
, magic-mime
, mirage-crypto
, mtime
, multipart-form-data
, ptime
, re
, rock
, tyxml
, uri
, yojson
, alcotest-lwt
}:

buildDunePackage rec {
  pname = "opium";
  minimalOCamlVersion = "4.08";
  duneVersion = "3";

  inherit (rock) src version;

  propagatedBuildInputs = [
    astring
    base64
    cmdliner
    fmt
    httpaf
    httpaf-lwt-unix
    logs
    magic-mime
    mirage-crypto
    mtime
    multipart-form-data
    ptime
    re
    rock
    tyxml
    uri
    yojson
  ];

  doCheck = true;
  checkInputs = [
    alcotest-lwt
  ];

  meta = {
    description = "OCaml web framework";
    homepage = "https://github.com/rgrinberg/opium";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.pmahoney ];
  };
}