makeLibraryPath
lib.strings.makeLibraryPath
Docs pulled from | This Revision | 15 minutes ago
Nixpkgs manual
Construct a library search path (such as RPATH) containing the libraries for a set of packages
Inputs
packages- List of packages
Type
makeLibraryPath :: [Derivation] -> String
Examples
lib.strings.makeLibraryPath usage example
makeLibraryPath [ "/usr" "/usr/local" ]
=> "/usr/lib:/usr/local/lib"
pkgs = import <nixpkgs> { }
makeLibraryPath [ pkgs.openssl pkgs.zlib ]
=> "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r/lib:/nix/store/wwh7mhwh269sfjkm6k5665b5kgp7jrk2-zlib-1.2.8/lib"
Noogle detected
- lib.makeBinPath
- lib.makeIncludePath
- lib.makeLibraryPath
- lib.strings.makeBinPath
- lib.strings.makeIncludePath
Implementation
The following is the current implementation of this function.
paths: concatColons (concatPaths paths)