hnix-store-nar-0.1.1.0: NAR file format
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Nix.Nar.Effects

Synopsis

Documentation

narEffectsIO :: (MonadIO m, MonadFail m, MonadBaseControl IO m) => NarEffects m Source #

A particular NarEffects that uses regular POSIX for file manipulation You would replace this with your own NarEffects if you wanted a different backend

data IsExecutable Source #

Constructors

NonExecutable 
Executable 

Instances

Instances details
Show IsExecutable Source # 
Instance details

Defined in System.Nix.Nar.Effects

Eq IsExecutable Source # 
Instance details

Defined in System.Nix.Nar.Effects

isExecutable :: FileStatus -> Bool Source #

Check whether the file is executable by the owner.

Matches the logic used by Nix.

access() should not be used for this purpose on macOS. It returns false for executables when placed in certain directories. For example, when in an app bundle: App.appContentsResourcesen.lprojmyexecutable.strings

setExecutable :: FilePath -> IO () Source #

Set the file to be executable by the owner, group, and others.

Matches the logic used by Nix.