Copyright | (c) 2020 Jordan Mackie |
---|---|
License | MIT |
Maintainer | Jordan Mackie <contact@jmackie.dev> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
An implementation of the Nix ARchive format (NAR).
Documentation
Errors that can be raised when attempting to pack a path into a NAR archive.
FileDoesNotExist FilePath | Attempted to pack a path that doesn't exist. |
AmbiguousFileType FilePath | Heuristic for detecting the type of path failed. Where type is one: a regular file, a directory, or a symbolic link. |
localPack :: FilePath -> IO (Either PackError NAR) Source #
Create a NAR archive for the given path in a local context.
See figure 5.2 of https://nixos.org/~eelco/pubs/phd-thesis.pdf
dump :: NAR -> ByteString Source #
Serialize a NAR archive.