1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

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