hnix-store-remote-0.6.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

-> NarSource MonadStore

provide nar stream

-> Bool

Add target directory recursively

-> RepairFlag

Only used by local store backend

-> MonadStore StorePath 

Pack 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 #