search-paths: Add $TZDIR.

* guix/search-paths.scm ($TZDIR): New search path.
This commit is contained in:
Maxim Cournoyer 2023-09-12 10:03:44 -04:00
parent 076b3384df
commit f0e05411bd
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -37,6 +37,7 @@ (define-module (guix search-paths)
$PKG_CONFIG_PATH
$SSL_CERT_DIR
$SSL_CERT_FILE
$TZDIR
search-path-specification->sexp
sexp->search-path-specification
@ -104,16 +105,22 @@ (define $PKG_CONFIG_PATH
(define $SSL_CERT_DIR
(search-path-specification
(variable "SSL_CERT_DIR")
(separator #f) ;single entry
(separator #f) ;single entry
(files '("etc/ssl/certs"))))
(define $SSL_CERT_FILE
(search-path-specification
(variable "SSL_CERT_FILE")
(file-type 'regular)
(separator #f) ;single entry
(separator #f) ;single entry
(files '("etc/ssl/certs/ca-certificates.crt"))))
(define $TZDIR
(search-path-specification
(variable "TZDIR")
(files '("share/zoneinfo"))
(separator #f))) ;single entry
(define (search-path-specification->sexp spec)
"Return an sexp representing SPEC, a <search-path-specification>. The sexp
corresponds to the arguments expected by `set-path-environment-variable'."