hnix-store-core-0.1.0.0: Core effects for interacting with the Nix store.

MaintainerShea Levy <shea@shealevy.com>
Safe HaskellNone
LanguageHaskell2010

System.Nix.Nar

Description

|

Synopsis

Documentation

data FileSystemObject Source #

A FileSystemObject (FSO) is an anonymous entity that can be NAR archived

Constructors

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

data IsExecutable Source #

Constructors

NonExecutable 
Executable 
Instances
Eq IsExecutable Source # 
Instance details

Defined in System.Nix.Nar

Show IsExecutable Source # 
Instance details

Defined in System.Nix.Nar

data Nar Source #

Constructors

Nar 
Instances
Eq Nar Source # 
Instance details

Defined in System.Nix.Nar

Methods

(==) :: Nar -> Nar -> Bool #

(/=) :: Nar -> Nar -> Bool #

Show Nar Source # 
Instance details

Defined in System.Nix.Nar

Methods

showsPrec :: Int -> Nar -> ShowS #

show :: Nar -> String #

showList :: [Nar] -> ShowS #

Binary Nar Source # 
Instance details

Defined in System.Nix.Nar

Methods

put :: Nar -> Put #

get :: Get Nar #

putList :: [Nar] -> Put #

getNar :: Get Nar Source #

Deserialize a Nar from lazy ByteString

localPackNar :: Monad m => NarEffects m -> FilePath -> m Nar Source #

Pack a NAR from a filepath

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 #

putNar :: Nar -> Put Source #

Serialize Nar to lazy ByteString