stack-1.0.4: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.Nix

Description

Nix types.

Synopsis

Documentation

data NixOpts Source

Nix configuration. Parameterize by resolver type to avoid cyclic dependency.

Constructors

NixOpts 

Fields

nixEnable :: !Bool
 
nixPureShell :: !Bool
 
nixPackages :: ![Text]

The system packages to be installed in the environment before it runs

nixInitFile :: !(Maybe FilePath)

The path of a file containing preconfiguration of the environment (e.g shell.nix)

nixShellOptions :: ![Text]

Options to be given to the nix-shell command line

nixCompiler :: !(Maybe Resolver -> Maybe CompilerVersion -> Text)

Yield a compiler attribute name given a resolver override.

Instances

data NixOptsMonoid Source

An uninterpreted representation of nix options. Configurations may be "cascaded" using mappend (left-biased).

Constructors

NixOptsMonoid 

Fields

nixMonoidDefaultEnable :: !Bool

Should nix-shell be defaulted to enabled (does nix: section exist in the config)?

nixMonoidEnable :: !(Maybe Bool)

Is using nix-shell enabled?

nixMonoidPureShell :: !(Maybe Bool)

Should the nix-shell be pure

nixMonoidPackages :: !(Maybe [Text])

System packages to use (given to nix-shell)

nixMonoidInitFile :: !(Maybe FilePath)

The path of a file containing preconfiguration of the environment (e.g shell.nix)

nixMonoidShellOptions :: !(Maybe [Text])

Options to be given to the nix-shell command line

nixMonoidPath :: !(Maybe [Text])

Override parts of NIX_PATH (notably nixpkgs)

Instances

Eq NixOptsMonoid Source 
Show NixOptsMonoid Source 
Monoid NixOptsMonoid Source

Left-biased combine Nix options

FromJSON (NixOptsMonoid, [JSONWarning]) Source

Decode uninterpreted nix options from JSON/YAML.

nixEnableArgName :: Text Source

Nix enable argument name.

nixPureShellArgName :: Text Source

Nix run in pure shell argument name.

nixPackagesArgName :: Text Source

Nix packages (build inputs) argument name.

nixInitFileArgName :: Text Source

shell.nix file path argument name.

nixShellOptsArgName :: Text Source

Extra options for the nix-shell command argument name.

nixPathArgName :: Text Source

NIX_PATH override argument name