* A convenience function `makeLibraryPath' that adds "/lib" to each

element of a list and concatenates them separated by colons.

svn path=/nixpkgs/branches/stdenv-updates/; revision=11970
This commit is contained in:
Eelco Dolstra 2008-06-04 09:56:11 +00:00
parent c6e98aeba3
commit dcf01e5925

View File

@ -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]