summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/strings.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index fc6c2152b9fc..58d3199ac318 100644
--- a/lib/strings.nix
+++ b/lib/strings.nix
@@ -50,7 +50,9 @@ rec {
# Construct a library search path (such as RPATH) containing the
# libraries for a set of packages, e.g. "${pkg1}/lib:${pkg2}/lib:...".
- makeLibraryPath = makeSearchPath "lib";
+ makeLibraryPath = pkgs: makeSearchPath "lib"
+ # try to guess the right output of each pkg
+ (map (pkg: pkg.lib or (pkg.out or pkg)) pkgs);
# Construct a binary search path (such as $PATH) containing the
# binaries for a set of packages, e.g. "${pkg1}/bin:${pkg2}/bin:...".