hnix-store/hnix-store-remote
Cale Gibbard a187937be4 rework ContentAddress
Co-Authored-By: Richard Marko <srk@48.io>
2023-11-18 19:02:30 +01:00
..
src/System/Nix/Store rework ContentAddress 2023-11-18 19:02:30 +01:00
tests remote: drop global OverloadedStrings 2023-11-18 09:22:34 +01:00
tests-io remote: prune extensions 2023-11-18 09:22:34 +01:00
.envrc Lorri + direnv. 2019-03-19 20:52:25 -04:00
CHANGELOG.md remote: CHANGELOG cleanup 2023-11-15 08:49:38 +01:00
hnix-store-remote.cabal Replace SomeNamedDigest with DSum HashAlgo Digest 2023-11-18 18:45:42 +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: move flags to Types, wrap in newtype 2023-11-15 08:29:49 +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 dontRepair
    liftIO $ print res