about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/strings.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index 30c24f7bde5a8..474475e278908 100644
--- a/lib/strings.nix
+++ b/lib/strings.nix
@@ -132,7 +132,8 @@ rec {
        makePerlPath [ pkgs.perlPackages.NetSMTP ]
        => "/nix/store/n0m1fk9c960d8wlrs62sncnadygqqc6y-perl-Net-SMTP-1.25/lib/perl5/site_perl"
   */
-  makePerlPath = makeSearchPath "lib/perl5/site_perl";
+  makePerlPath = pkgs: makeSearchPath "lib/perl5/site_perl"
+    (map (pkg: pkg.lib or (pkg.out or pkg)) pkgs);
 
   /* Dependening on the boolean `cond', return either the given string
      or the empty string. Useful to contatenate against a bigger string.