mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-30 12:53:11 +03:00
792c76b0af
`brittany` was used. Then all changes passed through manual supervision. Then handcrafted code cleanup was done. All changes are pure lambda code refactoring, there should be no changes to the functionality. |
||
---|---|---|
.. | ||
src/System/Nix/Store | ||
tests | ||
.envrc | ||
cabal.project | ||
ChangeLog.md | ||
hnix-store-remote.cabal | ||
LICENSE | ||
README.md | ||
shell.nix |
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