hnix-store-core-0.4.2.0: Core effects for interacting with the Nix store.
Safe HaskellNone
LanguageHaskell2010

System.Nix.Internal.Nar.Streamer

Description

Stream out a NAR file from a regular file

Synopsis

Documentation

streamNarIO :: forall m. MonadIO m => (ByteString -> m ()) -> NarEffects IO -> FilePath -> m () Source #

This implementation of Nar encoding takes an arbitrary yield function from any streaming library, and repeatedly calls it while traversing the filesystem object to Nar encode

padLen :: Int -> Int Source #

Distance to the next multiple of 8