opam-state

State library for opam 2.1
Module OpamSysPoll
val arch : unit -> string option
val os : unit -> string option
val os_distribution : unit -> string option
val os_version : unit -> string option
val os_family : unit -> string option
val variables : (OpamVariable.t * OpamTypes.variable_contents option Lazy.t) list
val normalise_arch : string -> string

The function used internally to get our canonical names for architectures (returns its input lowercased if not a recognised arch). This is typically called on the output of uname -m

val normalise_os : string -> string

The function used internally to get our canonical names for OSes (returns its input lowercased if not a recognised OS). This is typically called on the output of uname -s

val cores : unit -> int
val to_string : unit -> string

Returns a string containing arch, os, os-distribution & os-version values, unknown if they are not available