hnix-store-remote: Remote hnix store

[ apache, library, nix ] [ Propose Tags ] [ Report a vulnerability ]

Implementation of the nix store using the daemon protocol.


[Skip to Readme]

Modules

[Last Documentation]

  • Data
    • Data.Serializer
      • Data.Serializer.Example
  • System
    • Nix
      • Store
        • System.Nix.Store.Remote
          • System.Nix.Store.Remote.Arbitrary
          • System.Nix.Store.Remote.Client
            • System.Nix.Store.Remote.Client.Core
          • System.Nix.Store.Remote.Logger
          • System.Nix.Store.Remote.MonadStore
          • System.Nix.Store.Remote.Serializer
          • System.Nix.Store.Remote.Server
          • System.Nix.Store.Remote.Socket
          • System.Nix.Store.Remote.Types
            • System.Nix.Store.Remote.Types.Activity
            • System.Nix.Store.Remote.Types.CheckMode
            • System.Nix.Store.Remote.Types.GC
            • System.Nix.Store.Remote.Types.Handshake
            • System.Nix.Store.Remote.Types.Logger
            • System.Nix.Store.Remote.Types.NoReply
            • System.Nix.Store.Remote.Types.ProtoVersion
            • System.Nix.Store.Remote.Types.Query
              • System.Nix.Store.Remote.Types.Query.Missing
            • System.Nix.Store.Remote.Types.StoreConfig
            • System.Nix.Store.Remote.Types.StoreReply
            • System.Nix.Store.Remote.Types.StoreRequest
            • System.Nix.Store.Remote.Types.StoreText
            • System.Nix.Store.Remote.Types.SubstituteMode
            • System.Nix.Store.Remote.Types.SuccessCodeReply
            • System.Nix.Store.Remote.Types.TrustedFlag
            • System.Nix.Store.Remote.Types.Verbosity
            • System.Nix.Store.Remote.Types.WorkerMagic
            • System.Nix.Store.Remote.Types.WorkerOp

Flags

Automatic Flags
NameDescriptionDefault
io-testsuite

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

Disabled
build-derivation

Build build-derivation executable

Disabled
build-readme

Build README.lhs example

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

Candidates

Versions [RSS] 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.7.0.0, 0.8.0.0
Change log CHANGELOG.md
Dependencies aeson, attoparsec, base (>=4.12 && <5), bytestring, cereal, concurrency, containers, crypton, data-default-class, dependent-sum (>0.7), dependent-sum-template (>=0.2.0.1 && <0.3), dlist (>=1.0), exceptions, generic-arbitrary (<1.1), hashable, hnix-store-aterm, hnix-store-core (>=0.9 && <0.10), hnix-store-json (>=0.2), hnix-store-nar (>=0.1), hnix-store-remote, hnix-store-tests (>=0.2), lattices, mmorph, mtl, network, QuickCheck, text, time, transformers, unix (>=2.7), unordered-containers, vector [details]
License Apache-2.0
Copyright 2018 Sorki
Author Sorki
Maintainer srk@48.io
Uploaded by srk at 2026-10-21T15:38:11Z
Category Nix
Home page https://github.com/haskell-nix/hnix-store
Distributions
Reverse Dependencies 1 direct, 11 indirect [details]
Executables remote-readme, build-derivation
Downloads 3639 total (47 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-10-21 [all 2 reports]

Readme for hnix-store-remote-0.8.0.0

[back to package description]

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