buildbox-1.5.3.1: Rehackable components for writing buildbots and test harnesses.

Safe HaskellSafe-Infered

BuildBox.Command.Environment

Contents

Description

Gathering information about the build environment.

Synopsis

Build Environment

data Environment Source

The environment consists of the Platform, and some tool versions.

getEnvironmentWithSource

Arguments

:: [(String, Build String)]

List of tool names and commands to get their versions.

-> Build Environment 

Get the current environment, including versions of these tools.

Build platform

data Platform Source

Generic information about the platform we're running on.

getHostPlatform :: Build PlatformSource

Get information about the host platform.

getHostName :: Build StringSource

Get the name of this host, using uname.

getHostArch :: Build StringSource

Get the host architecture, using uname.

getHostProcessor :: Build StringSource

Get the host processor name, using uname.

getHostOS :: Build StringSource

Get the host operating system, using uname.

getHostRelease :: Build StringSource

Get the host operating system release, using uname.

Software versions

getVersionGHC :: FilePath -> Build StringSource

Get the version of this GHC, or throw an error if it can't be found.

getVersionGCC :: FilePath -> Build StringSource

Get the version of this GCC, or throw an error if it can't be found.