cachix-0.3.8: Command line client for Nix binary cache hosting https://cachix.org
Safe HaskellNone
LanguageHaskell2010

Cachix.Client.Store

Synopsis

Documentation

data Store Source #

TODO: foreignptr

Getting a Store

Query a path

followLinksToStorePath :: Store -> ByteString -> IO ByteString Source #

Follow symlinks to the store and chop off the parts after the top-level store name

queryPathInfo Source #

Arguments

:: Store 
-> ByteString

Exact store path, not a subpath

-> IO (ForeignPtr (Ref ValidPathInfo))

ValidPathInfo or exception

validPathInfoNarSize :: ForeignPtr (Ref ValidPathInfo) -> Int64 Source #

The narSize field of a ValidPathInfo struct. Source: store-api.hh

validPathInfoNarHash :: ForeignPtr (Ref ValidPathInfo) -> IO ByteString Source #

Copy the narHash field of a ValidPathInfo struct. Source: store-api.hh

validPathInfoDeriver :: ForeignPtr (Ref ValidPathInfo) -> IO ByteString Source #

Deriver field of a ValidPathInfo struct. Source: store-api.hh

Returns unknownDeriver when missing.

unknownDeriver :: Text Source #

String constant representing the case when the deriver of a store path does not exist or is not known. Value: unknown-deriver

validPathInfoReferences :: ForeignPtr (Ref ValidPathInfo) -> IO PathSet Source #

References field of a ValidPathInfo struct. Source: store-api.hh

Get closures

traversePathSet :: forall a. (ByteString -> IO a) -> PathSet -> IO [a] Source #

Miscellaneous