query
On this page

makeBinPath

lib.strings.makeBinPath

Docs pulled from | This Revision | 16 minutes ago


Nixpkgs manual

Construct a binary search path (such as $PATH) containing the binaries for a set of packages.

Inputs

packages
List of packages

Type

makeBinPath :: [Derivation] -> String

Examples

lib.strings.makeBinPath usage example

makeBinPath ["/root" "/usr" "/usr/local"]
=> "/root/bin:/usr/bin:/usr/local/bin"

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

pkgs:
    concatStringsSep ":" (
      concatMap (path: if path != null then [ (getOutput' path + "/" + subDir) ] else [ ]) pkgs
    )