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:
parent
c6e98aeba3
commit
dcf01e5925
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue