package mirage

  1. Overview
  2. Docs
The MirageOS library operating system

Install

Dune Dependency

Authors

Maintainers

Sources

mirage-4.9.0.tbz
sha256=0c07d59eb52dc3d1506eb4121c4953104a12df79d08a0f0923c9b71e7474a026
sha512=666bf9ee20c9f9de058441f252f4f40ceec6a9ffd00e5cd3b7bfa9532fd65000aeb8a83f9e55586be98d0a86ea72f2dda94e924608135e3d63441359505de58a

doc/mirage.functoria/Functoria/Install/index.html

Module Functoria.InstallSource

Sourcetype t
Sourceval v : ?bin:(Fpath.t * Fpath.t) list -> ?etc:Fpath.t list -> unit -> t

v ~bin:[(src,dst),...] ~etc () is the installation of src as dst as binary files, and etc as configuration/artifact.

Sourceval union : t -> t -> t

union a b merge to sets of installation rules.

Sourceval empty : t

empty is the installation of nothing.

Sourceval pp : t Fmt.t

Print the .install rules to install t

Sourceval pp_opam : ?subdir:Fpath.t -> unit -> t Fmt.t

Print the opam rules to install t. If ~subdir is provided, this will be used as prefix (i.e. if your unikernel is in the "tutorial/hello/" subdirectory (which is passed as ~subdir, the install instructions will use cp tutorial/hello/dist/hello.hvt %{bin}%/hello.hvt).

Sourceval dune : context_name_for_bin:string -> context_name_for_etc:string -> t -> Dune.t

dune ~context_name_for_bin ~context_name_for_etc () is the dune rules to promote installed files back in the source tree. A context-name is required for bin and etc artifacts. The first one should be the cross-compiler context and the second one should be the host's compiler context.

Sourceval dump : t Fmt.t

Dump installation rules.

OCaml

Innovation. Community. Security.