-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.ml
40 lines (36 loc) · 955 Bytes
/
config.ml
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
(* mirage >= 4.7.0 & < 4.9.0 *)
open Mirage
let assets = crunch "assets"
let mollymawk =
let packages =
[
package "logs";
package "x509";
package "tls-mirage";
package ~min:"2.3.0" "albatross";
package "yojson";
package "uri";
package "tyxml";
package "multipart_form";
package "mirage-crypto-rng";
package "uuidm";
package "emile";
package "sendmail";
package "paf" ~sublibs:[ "mirage" ] ~min:"0.5.0";
package "oneffs";
package "duration";
package ~min:"0.2.0" "ohex";
]
in
main ~packages "Unikernel.Main"
(random @-> pclock @-> mclock @-> time @-> stackv4v6 @-> kv_ro @-> block
@-> job)
let block = block_of_file "data"
let () =
register "mollymawk"
[
mollymawk $ default_random $ default_posix_clock $ default_monotonic_clock
$ default_time
$ generic_stackv4v6 default_network
$ assets $ block;
]