makeBinPath: guess outputs

This commit is contained in:
Nikolay Amiantov 2016-04-13 14:39:00 +03:00
parent 1e37217b80
commit 5ef56700b9

View file

@ -109,7 +109,8 @@ rec {
makeBinPath ["/root" "/usr" "/usr/local"]
=> "/root/bin:/usr/bin:/usr/local/bin"
*/
makeBinPath = makeSearchPath "bin";
makeBinPath = pkgs: makeSearchPath "bin"
(map (pkg: pkg.bin or (pkg.out or pkg)) pkgs);
/* Construct a perl search path (such as $PERL5LIB)