diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix
index 20a441b5b433..1df45f96f378 100644
--- a/pkgs/lib/default.nix
+++ b/pkgs/lib/default.nix
@@ -72,6 +72,8 @@ rec {
   concatStringsSep = separator: list:
     concatStrings (intersperse separator list);
 
+  makeLibraryPath = paths: concatStringsSep ":" (map (path: path + "/lib") paths);
+
 
   # Flatten the argument into a single list; that is, nested lists are
   # spliced into the top-level lists.  E.g., `flatten [1 [2 [3] 4] 5]