mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-30 02:51:10 +03:00
67687b7697
before it wrongly compared to min/maxBound of Int(eger). |
||
---|---|---|
.. | ||
app | ||
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 System.Nix.StorePath (mkStorePathName)
import System.Nix.Store.Remote
main :: IO ()
main = do
runStore $ do
syncWithGC
roots <- findRoots
res <- case mkStorePathName "hnix-store" of
Left e -> error (show e)
Right name ->
addTextToStore
(StoreText name "Hello World!")
mempty
RepairMode_DontRepair
pure (roots, res)
>>= print