hnix-store/hnix-store-remote
Richard Marko 5bad6836c5 remote: build README.md via cabal
Added as `remote-readme` executable.

Closes #47.
2023-11-14 09:45:29 +01:00
..
src/System/Nix/Store Store dir like nix 2023-06-16 11:27:39 -04:00
tests remote: fix Wincomplete-uni-patterns warnings 2023-11-12 14:45:33 +01:00
.envrc Lorri + direnv. 2019-03-19 20:52:25 -04:00
cabal.project cabal: rm cryptohash-sha512 override 2021-01-09 21:14:15 +02:00
ChangeLog.md Add ChangeLog entries for Store dir like Nix 2023-10-30 14:22:02 +01:00
hnix-store-remote.cabal remote: build README.md via cabal 2023-11-14 09:45:29 +01:00
LICENSE hnix-store-remote prototype 2018-07-16 09:12:23 +02:00
README.lhs remote: build README.md via cabal 2023-11-14 09:45:29 +01:00
README.md remote: build README.md via cabal 2023-11-14 09:45:29 +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

{-# 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 False
    liftIO $ print res