summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-04-13 15:33:32 +0300
committerNikolay Amiantov <ab@fmap.me>2016-04-13 22:05:45 +0300
commite26119619f7ce64b065e692ba0cd31f53b9ef637 (patch)
tree91f089c75a17ba7dacc3b1d46b2cee9b4d61f34d
parent2a3b3d6f8b75eb10ab638d32c163bc6ca798ae50 (diff)
downloadnixlib-e26119619f7ce64b065e692ba0cd31f53b9ef637.tar
nixlib-e26119619f7ce64b065e692ba0cd31f53b9ef637.tar.gz
nixlib-e26119619f7ce64b065e692ba0cd31f53b9ef637.tar.bz2
nixlib-e26119619f7ce64b065e692ba0cd31f53b9ef637.tar.lz
nixlib-e26119619f7ce64b065e692ba0cd31f53b9ef637.tar.xz
nixlib-e26119619f7ce64b065e692ba0cd31f53b9ef637.tar.zst
nixlib-e26119619f7ce64b065e692ba0cd31f53b9ef637.zip
makePerlPath: try to guess outputs
-rw-r--r--lib/strings.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index 30c24f7bde5a..474475e27890 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.