hnix-store/hnix-store-remote
Shea Levy df43823868
hnix-store-remote: Remove erroneous path putting/getting.
mkPath's logic was completely wrong (tried to make a PathName out of
the entire path, made up a hash based on the whole path rather than
parsing base32) and putPath ignored the store directory and the hash
part.

Much of the code that depended on these functions was actually
correct, but ultimately did the wrong thing. We can resurrect those
from git once the primitives are correctly implemented.
2019-03-22 08:38:09 -04:00
..
src/System/Nix/Store hnix-store-remote: Remove erroneous path putting/getting. 2019-03-22 08:38:09 -04:00
.envrc Lorri + direnv. 2019-03-19 20:52:25 -04:00
hnix-store-remote.cabal hnix-store-remote: Remove erroneous path putting/getting. 2019-03-22 08:38:09 -04:00
LICENSE hnix-store-remote prototype 2018-07-16 09:12:23 +02:00
README.md hnix-store-remote prototype 2018-07-16 09:12:23 +02: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


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
    print res