Maintainer | Shea Levy <shea@shealevy.com> |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
|
Synopsis
- data FileSystemObject
- data IsExecutable
- data Nar = Nar {}
- getNar :: Get Nar
- localPackNar :: Monad m => NarEffects m -> FilePath -> m Nar
- localUnpackNar :: Monad m => NarEffects m -> FilePath -> Nar -> m ()
- narEffectsIO :: NarEffects IO
- putNar :: Nar -> Put
Documentation
data FileSystemObject Source #
A FileSystemObject (FSO) is an anonymous entity that can be NAR archived
Regular IsExecutable Int64 ByteString | Reguar file, with its executable state, size (bytes) and contents |
Directory (Map FilePathPart FileSystemObject) | Directory with mapping of filenames to sub-FSOs |
SymLink Text | Symbolic link target |
Instances
Eq FileSystemObject Source # | |
Defined in System.Nix.Nar (==) :: FileSystemObject -> FileSystemObject -> Bool # (/=) :: FileSystemObject -> FileSystemObject -> Bool # | |
Show FileSystemObject Source # | |
Defined in System.Nix.Nar showsPrec :: Int -> FileSystemObject -> ShowS # show :: FileSystemObject -> String # showList :: [FileSystemObject] -> ShowS # |
data IsExecutable Source #
Instances
Eq IsExecutable Source # | |
Defined in System.Nix.Nar (==) :: IsExecutable -> IsExecutable -> Bool # (/=) :: IsExecutable -> IsExecutable -> Bool # | |
Show IsExecutable Source # | |
Defined in System.Nix.Nar showsPrec :: Int -> IsExecutable -> ShowS # show :: IsExecutable -> String # showList :: [IsExecutable] -> ShowS # |
localUnpackNar :: Monad m => NarEffects m -> FilePath -> Nar -> m () Source #
Unpack a NAR into a non-nix-store directory (e.g. for testing)
narEffectsIO :: NarEffects IO Source #