diff options
Diffstat (limited to 'lib/strings.nix')
-rw-r--r-- | lib/strings.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix index a2a4be11e1b..14f20a7e309 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -98,7 +98,9 @@ rec { makeLibraryPath [ pkgs.openssl pkgs.zlib ] => "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r/lib:/nix/store/wwh7mhwh269sfjkm6k5665b5kgp7jrk2-zlib-1.2.8/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. |