hnix-store-remote: Remote hnix store

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

Implementation of the nix store using the daemon protocol.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.3.0.0, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.4.3.1, 0.5.0.0, 0.6.0.0, 0.6.0.0, 0.7.0.0
Change log ChangeLog.md
Dependencies attoparsec, base (>=4.12 && <5), binary, bytestring, containers, cryptonite, hnix-store-core (>=0.6 && <0.7), mtl, network, nix-derivation (>=1.1.1 && <2), relude (>=1.0), text, time, unordered-containers [details]
License Apache-2.0
Copyright 2018 Richard Marko
Author Richard Marko
Maintainer srk@48.io
Category Nix
Home page https://github.com/haskell-nix/hnix-store
Uploaded by srk at 2022-06-06T10:22:25Z

Modules

[Index] [Quick Jump]

Flags

Automatic Flags
NameDescriptionDefault
io-testsuite

Enable testsuite, which requires external binaries and Linux namespace support.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for hnix-store-remote-0.6.0.0

[back to package description]

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