hnix-0.8.0: Haskell implementation of the Nix language
Safe HaskellNone
LanguageHaskell2010

Nix.Effects.Basic

Synopsis

Documentation

removeDotDotIndirections :: FilePath -> FilePath Source #

Incorrectly normalize paths by rewriting patterns like ab.. to a. This is incorrect on POSIX systems, because if b is a symlink, its parent may be a different directory from a. See the discussion at https://hackage.haskell.org/package/directory-1.3.1.5/docs/System-Directory.html#v:canonicalizePath

findEnvPathM :: forall e t f m. MonadNix e t f m => FilePath -> m FilePath Source #

findPathBy :: forall e t f m. MonadNix e t f m => (FilePath -> m (Maybe FilePath)) -> [NValue t f m] -> FilePath -> m FilePath Source #

fetchTarball :: forall e t f m. MonadNix e t f m => NValue t f m -> m (NValue t f m) Source #

defaultFindPath :: MonadNix e t f m => [NValue t f m] -> FilePath -> m FilePath Source #

findPathM :: forall e t f m. MonadNix e t f m => [NValue t f m] -> FilePath -> m FilePath Source #

defaultDerivationStrict :: forall e t f m. MonadNix e t f m => NValue t f m -> m (NValue t f m) Source #