mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gexp: Add symlink-to procedure.
* guix/gexp.scm (symlink-to): New procedure. * doc/guix.texi (G-Expressions): Document it. Change-Id: I7c1ba3a29a4e5350cb4f196185b7171c4750b6b8 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
committed by
Maxim Cournoyer
parent
9b7213fc11
commit
b989e503ac
@@ -12692,6 +12692,17 @@ file. Here's an example:
|
||||
This yields an @code{etc} directory containing these two files.
|
||||
@end deffn
|
||||
|
||||
@deffn {Procedure} symlink-to target
|
||||
Return a @code{<computed-file>} that is a symbolic link to target.
|
||||
Note, that the target does not need to exist at the build time. One of
|
||||
uses is to put arbitrary symlinks into user's home:
|
||||
|
||||
@lisp
|
||||
(service home-files-service-type
|
||||
`(("Sync" ,(symlink-to "/storage/Sync"))))
|
||||
@end lisp
|
||||
@end deffn
|
||||
|
||||
@deffn {Procedure} directory-union name things
|
||||
Return a directory that is the union of @var{things}, where @var{things} is a list of
|
||||
file-like objects denoting directories. For example:
|
||||
|
||||
Reference in New Issue
Block a user