hnix-0.5.1: Haskell implementation of the Nix language

Safe HaskellNone
LanguageHaskell2010

Nix.Effects

Synopsis

Documentation

newtype StorePath Source #

A path into the nix store

Constructors

StorePath 

class MonadFile m => MonadEffects m where Source #

Methods

addPath :: FilePath -> m StorePath Source #

Import a path into the nix store, and return the resulting path

makeAbsolutePath :: FilePath -> m FilePath Source #

Determine the absolute path of relative path in the current context

findEnvPath :: String -> m FilePath Source #

pathExists :: FilePath -> m Bool Source #

importPath :: AttrSet (NThunk m) -> FilePath -> m (NValue m) Source #

getEnvVar :: String -> m (Maybe String) Source #

getCurrentSystemOS :: m Text Source #

getCurrentSystemArch :: m Text Source #

listDirectory :: FilePath -> m [FilePath] Source #

getSymbolicLinkStatus :: FilePath -> m FileStatus Source #

derivationStrict :: NValue m -> m (NValue m) Source #

nixInstantiateExpr :: String -> m (NValue m) Source #

getURL :: Text -> m (NValue m) Source #

getRecursiveSize :: a -> m (NValue m) Source #

traceEffect :: String -> m () Source #

exec :: [String] -> m (NValue m) Source #