nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ buildDunePackage
2, lib
3, astring
4, base64
5, cmdliner
6, fmt
7, httpaf
8, httpaf-lwt-unix
9, logs
10, magic-mime
11, mirage-crypto
12, mtime
13, multipart-form-data
14, ptime
15, re
16, rock
17, tyxml
18, uri
19, yojson
20, alcotest-lwt
21}:
22
23buildDunePackage rec {
24 pname = "opium";
25 minimalOCamlVersion = "4.08";
26 duneVersion = "3";
27
28 inherit (rock) src version;
29
30 propagatedBuildInputs = [
31 astring
32 base64
33 cmdliner
34 fmt
35 httpaf
36 httpaf-lwt-unix
37 logs
38 magic-mime
39 mirage-crypto
40 mtime
41 multipart-form-data
42 ptime
43 re
44 rock
45 tyxml
46 uri
47 yojson
48 ];
49
50 doCheck = true;
51 checkInputs = [
52 alcotest-lwt
53 ];
54
55 meta = {
56 description = "OCaml web framework";
57 homepage = "https://github.com/rgrinberg/opium";
58 license = lib.licenses.mit;
59 maintainers = [ lib.maintainers.pmahoney ];
60 };
61}