@ -689,14 +689,15 @@ rec {
" / p r e f i x / n i x - p r o f i l e s - l i b r a r y - p a t h s . p a t c h "
" / p r e f i x / c o m p o s e - s e a r c h - p a t h . p a t c h " ]
* /
readPathsFromFile = rootPath : file :
let
lines = lib . splitString " \n " ( builtins . readFile file ) ;
removeComments = lib . filter ( line : line != " " && ! ( lib . hasPrefix " # " line ) ) ;
relativePaths = removeComments lines ;
absolutePaths = builtins . map ( path : rootPath + " / ${ path } " ) relativePaths ;
in
absolutePaths ;
readPathsFromFile = lib . warn " l i b . r e a d P a t h s F r o m F i l e i s d e p r e c a t e d , u s e a l i s t i n s t e a d "
( rootPath : file :
let
lines = lib . splitString " \n " ( builtins . readFile file ) ;
removeComments = lib . filter ( line : line != " " && ! ( lib . hasPrefix " # " line ) ) ;
relativePaths = removeComments lines ;
absolutePaths = builtins . map ( path : rootPath + " / ${ path } " ) relativePaths ;
in
absolutePaths ) ;
/* R e a d t h e c o n t e n t s o f a f i l e r e m o v i n g t h e t r a i l i n g \ n