makeSearchPathOutput
lib.strings.makeSearchPathOutput
Docs pulled from | This Revision | 10 minutes ago
Construct a Unix-style search path by appending the given
subDir
to the specified output
of each of the packages.
If no output by the given name is found, fallback to .out
and then to
the default.
Inputs
output
- Package output to use
subDir
- Directory name to append
pkgs
- List of packages
Type
makeSearchPathOutput :: string -> string -> [package] -> string
Examples
lib.strings.makeSearchPathOutput
usage example
makeSearchPathOutput "dev" "bin" [ pkgs.openssl pkgs.zlib ]
=> "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r-dev/bin:/nix/store/wwh7mhwh269sfjkm6k5665b5kgp7jrk2-zlib-1.2.8/bin"
Noogle detected
Implementation
The following is the current implementation of this function.
makeSearchPathOutput =
output:
subDir:
pkgs: makeSearchPath subDir (map (lib.getOutput output) pkgs);