hnix-store/hnix-store-remote
squalus c6a579273f switch to crypton
cryptonite is unmaintained. Replace it with crypton.

Closes #239.
2023-11-23 10:22:19 -08:00
..
src/System/Nix/Store add signature decoding 2023-11-22 15:19:03 -08:00
tests tests: add Test.Hspec.Nix.roundtrip 2023-11-20 09:22:05 +01:00
tests-io hide StorePath constructor, add unsafeMakeStorePath 2023-11-22 09:50:40 +01:00
CHANGELOG.md remote: CHANGELOG cleanup 2023-11-15 08:49:38 +01:00
hnix-store-remote.cabal switch to crypton 2023-11-23 10:22:19 -08: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 add RepairMode to System.Nix.Store.Types 2023-11-22 09:07:14 +01: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 RepairMode_DontRepair
    liftIO $ print res