mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-12-03 05:42:32 +03:00
751669cd0d
Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems> |
||
---|---|---|
.. | ||
src | ||
tests | ||
tests-io | ||
CHANGELOG.md | ||
hnix-store-remote.cabal | ||
LICENSE | ||
README.lhs | ||
README.md |
hnix-store-remote
Nix worker protocol implementation for interacting with remote Nix store
via nix-daemon
.
API
Example
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (void)
import Control.Monad.IO.Class (liftIO)
import System.Nix.Store.Remote
main :: IO ()
main = do
void $ runStore $ do
syncWithGC
roots <- findRoots
liftIO $ print roots
res <- addTextToStore "hnix-store" "test" mempty RepairMode_DontRepair
liftIO $ print res