package opam-state

  1. Overview
  2. Docs

doc/opam-state/OpamSysPoll/index.html

Module OpamSysPollSource

This module polls various aspects of the host, to define the arch, os, etc. variables

Sourceval arch : unit -> string option
Sourceval os : unit -> string option
Sourceval os_distribution : unit -> string option
Sourceval os_version : unit -> string option
Sourceval os_family : unit -> string option
Sourceval variables : (OpamVariable.t * OpamTypes.variable_contents option Lazy.t) list
Sourceval 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

Sourceval 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

OCaml

Innovation. Community. Security.