hnix-store/hnix-store-remote
2020-11-29 15:14:26 +01:00
..
src/System/Nix/Store remote: fix contentAddressableAddressBuilder to work with SomeDigest 2020-11-16 11:56:31 +01:00
tests Merge pull request #75 from layus/fix-build 2020-11-13 23:36:12 +01:00
.envrc Lorri + direnv. 2019-03-19 20:52:25 -04:00
ChangeLog.md ChangeLog(s): release 0.3.0.0 2020-11-29 15:14:26 +01:00
hnix-store-remote.cabal remote: add lower bound for hnix-store-core 2020-11-16 11:43:00 +01:00
LICENSE hnix-store-remote prototype 2018-07-16 09:12:23 +02:00
README.md hnix-store-remote README: fix example 2019-03-28 21:32:31 +01:00
shell.nix Local shell.nixes to make flycheck happy. 2019-03-09 19:04:11 -05:00

hnix-store-remote

Nix worker protocol implementation for interacting with remote Nix store via nix-daemon.

API

Example


import Control.Monad.IO.Class (liftIO)
import Data.HashSet as HS
import System.Nix.Store.Remote

main = do
  runStore $ do
    syncWithGC
    roots <- findRoots
    liftIO $ print roots

    res <- addTextToStore "hnix-store" "test" (HS.fromList []) False
    liftIO $ print res