hnix-store-remote-0.5.0.0: Remote hnix store
Safe HaskellNone
LanguageHaskell2010

System.Nix.Store.Remote

Synopsis

Documentation

addToStore Source #

Arguments

:: forall a. NamedAlgo a 
=> StorePathName

Name part of the newly created StorePath

-> FilePath

Local FilePath to add

-> Bool

Add target directory recursively

-> (FilePath -> Bool)

Path filter function

-> RepairFlag

Only used by local store backend

-> MonadStore StorePath 

Pack FilePath as Nar and add it to the store.

addTextToStore Source #

Arguments

:: Text

Name of the text

-> Text

Actual text to add

-> StorePathSet

Set of StorePaths that the added text references

-> RepairFlag

Repair flag, must be False in case of remote backend

-> MonadStore StorePath 

Add text to store.

Reference accepts repair but only uses it to throw error in case of remote talking to nix-daemon.

addTempRoot :: StorePath -> MonadStore () Source #

Add temporary garbage collector root.

This root is removed as soon as the client exits.

buildPaths :: StorePathSet -> BuildMode -> MonadStore () Source #

Build paths if they are an actual derivations.

If derivation output paths are already valid, do nothing.

findRoots :: MonadStore (Map ByteString StorePath) Source #

Find garbage collector roots.

queryValidPaths Source #

Arguments

:: StorePathSet

Set of StorePaths to query

-> SubstituteFlag

Try substituting missing paths when True

-> MonadStore StorePathSet 

Query valid paths from set, optionally try to use substitutes.

verifyStore :: CheckFlag -> RepairFlag -> MonadStore Bool Source #