mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-09-11 18:05:56 +03:00
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. |
||
---|---|---|
.. | ||
src/System/Nix/Store | ||
.envrc | ||
hnix-store-remote.cabal | ||
LICENSE | ||
README.md | ||
shell.nix |
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