stack-1.4.0: The Haskell Tool Stack

Safe Haskell | None
Language | Haskell2010

Stack.Types.Nix

Description

Nix types.

Synopsis

- data NixOpts = NixOpts {
  - nixEnable :: !Bool
  - nixPureShell :: !Bool
  - nixPackages :: ![Text]
  - nixInitFile :: !(Maybe FilePath)
  - nixShellOptions :: ![Text]
  - nixAddGCRoots :: !Bool
  }
- data NixOptsMonoid = NixOptsMonoid {
  - nixMonoidDefaultEnable :: !Any
  - nixMonoidEnable :: !(First Bool)
  - nixMonoidPureShell :: !(First Bool)
  - nixMonoidPackages :: !(First [Text])
  - nixMonoidInitFile :: !(First FilePath)
  - nixMonoidShellOptions :: !(First [Text])
  - nixMonoidPath :: !(First [Text])
  - nixMonoidAddGCRoots :: !(First Bool)
  }
- nixEnableArgName :: Text
- nixPureShellArgName :: Text
- nixPackagesArgName :: Text
- nixInitFileArgName :: Text
- nixShellOptsArgName :: Text
- nixPathArgName :: Text
- nixAddGCRootsArgName :: Text

# Documentation

data NixOpts #

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 nixAddGCRoots :: !Bool Should we register gc roots so running nix-collect-garbage doesn't remove nix dependencies

Instances

Show NixOpts # |
Methods showsPrec :: Int -> NixOpts -> ShowS # show :: NixOpts -> String # showList :: [NixOpts] -> ShowS #

data NixOptsMonoid #

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

Constructors

NixOptsMonoid |
Fields nixMonoidDefaultEnable :: !Any Should nix-shell be defaulted to enabled (does `nix:` section exist in the config)? nixMonoidEnable :: !(First Bool) Is using nix-shell enabled? nixMonoidPureShell :: !(First Bool) Should the nix-shell be pure nixMonoidPackages :: !(First [Text]) System packages to use (given to nix-shell) nixMonoidInitFile :: !(First FilePath) The path of a file containing preconfiguration of the environment (e.g shell.nix) nixMonoidShellOptions :: !(First [Text]) Options to be given to the nix-shell command line nixMonoidPath :: !(First [Text]) Override parts of NIX_PATH (notably `nixpkgs`) nixMonoidAddGCRoots :: !(First Bool) Should we register gc roots so running nix-collect-garbage doesn't remove nix dependencies

Instances

Eq NixOptsMonoid # |
Methods (==) :: NixOptsMonoid -> NixOptsMonoid -> Bool # (/=) :: NixOptsMonoid -> NixOptsMonoid -> Bool #
Show NixOptsMonoid # |
Methods showsPrec :: Int -> NixOptsMonoid -> ShowS # show :: NixOptsMonoid -> String # showList :: [NixOptsMonoid] -> ShowS #
Generic NixOptsMonoid # |
Associated Types type Rep NixOptsMonoid :: * -> * # Methods from :: NixOptsMonoid -> Rep NixOptsMonoid x # to :: Rep NixOptsMonoid x -> NixOptsMonoid #
Monoid NixOptsMonoid # | Left-biased combine Nix options
Methods mempty :: NixOptsMonoid # mappend :: NixOptsMonoid -> NixOptsMonoid -> NixOptsMonoid # mconcat :: [NixOptsMonoid] -> NixOptsMonoid #
FromJSON (WithJSONWarnings NixOptsMonoid) # | Decode uninterpreted nix options from JSON/YAML.
Methods parseJSON :: Value -> Parser (WithJSONWarnings NixOptsMonoid) # parseJSONList :: Value -> Parser [WithJSONWarnings NixOptsMonoid] #
type Rep NixOptsMonoid # |
type Rep NixOptsMonoid = D1 (MetaData "NixOptsMonoid" "Stack.Types.Nix" "stack-1.4.0-5VbagGyw9hyAgBJq8WQvrq" False) (C1 (MetaCons "NixOptsMonoid" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "nixMonoidDefaultEnable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Any)) (S1 (MetaSel (Just Symbol "nixMonoidEnable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "nixMonoidPureShell") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool))) (S1 (MetaSel (Just Symbol "nixMonoidPackages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First [Text]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "nixMonoidInitFile") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First FilePath))) (S1 (MetaSel (Just Symbol "nixMonoidShellOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "nixMonoidPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First [Text]))) (S1 (MetaSel (Just Symbol "nixMonoidAddGCRoots") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool)))))))

nixEnableArgName :: Text #

Nix enable argument name.

nixPureShellArgName :: Text #

Nix run in pure shell argument name.

nixPackagesArgName :: Text #

Nix packages (build inputs) argument name.

nixInitFileArgName :: Text #

shell.nix file path argument name.

nixShellOptsArgName :: Text #

Extra options for the nix-shell command argument name.

nixPathArgName :: Text #

NIX_PATH override argument name

nixAddGCRootsArgName :: Text #

Add GC roots arg name