wrapperManagerLib.utils

wrapperManagerLib.utils

wrapperManagerLib.utils.getBin

Given a list of derivations, return a list of the store path with the bin output (or at least with “/bin” in each of the paths).

Arguments

drvs
A list of derivations.

Type

getBin :: [ Derivation ] -> [ Path ]

Examples

getBin (with pkgs; [ hello coreutils ])
=>
[
  "/nix/store/HASH-hello/bin"
  "/nix/store/HASH-coreutils/bin"
]

wrapperManagerLib.utils.getLibexec

Given a list of derivations, return a list of the store paths with the libexec appended.

Arguments

drvs
A list of derivations.

Type

getLibexec :: [ Derivation ] -> [ Path ]

Examples

getLibexec (with pkgs; [ hello coreutils ])
=>
[
  "/nix/store/HASH-hello/libexec"
  "/nix/store/HASH-coreutils/libexec"
]

wrapperManagerLib.utils.getXdgConfigDirs

Given a list of derivations, return a list of the store paths appended with /etc/xdg suitable as part of the XDG_CONFIG_DIRS environment variable.

Arguments

drvs
A list of derivations.

Type

getXdgConfigDirs :: [ Derivation ] -> [ Path ]

Examples

getXdgConfigDirs (with pkgs; [ hello coreutils ])
=>
[
  "/nix/store/HASH-hello/etc/xdg"
  "/nix/store/HASH-coreutils/etc/xdg"
]

wrapperManagerLib.utils.getXdgDataDirs

Given a list of derivations, return a list of store paths appended with /share suitable as part of the XDG_DATA_DIRS environment variable.

Arguments

drvs
A list of derivations.

Type

getXdgDataDirs :: [ Derivation ] -> [ Path ]

Examples

getXdgDataDirs (with pkgs; [ hello coreutils ])
=>
[
  "/nix/store/HASH-hello/share"
  "/nix/store/HASH-coreutils/share"
]