2018-07-16 10:12:23 +03:00
|
|
|
hnix-store-remote
|
|
|
|
=================
|
|
|
|
|
|
|
|
Nix worker protocol implementation for interacting with remote Nix store
|
|
|
|
via `nix-daemon`.
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
[System.Nix.Store.Remote]: ./src/System/Nix/Store/Remote.hs
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```haskell
|
|
|
|
|
2019-03-28 23:32:31 +03:00
|
|
|
import Control.Monad.IO.Class (liftIO)
|
2018-07-16 10:12:23 +03:00
|
|
|
import Data.HashSet as HS
|
|
|
|
import System.Nix.Store.Remote
|
|
|
|
|
|
|
|
main = do
|
|
|
|
runStore $ do
|
|
|
|
syncWithGC
|
|
|
|
roots <- findRoots
|
|
|
|
liftIO $ print roots
|
|
|
|
|
2019-03-28 23:32:31 +03:00
|
|
|
res <- addTextToStore "hnix-store" "test" (HS.fromList []) False
|
|
|
|
liftIO $ print res
|
2018-07-16 10:12:23 +03:00
|
|
|
```
|