From e92f831862341fe9acbae2df0c47582d448f458c Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 5 Nov 2025 08:24:59 +0900 Subject: gnu: tzdata: Install leap-seconds.list file. * gnu/packages/base.scm (tzdata/leap-seconds): Delete variable. (tzdata) [#:phases] {post-install}: Install leap-seconds.list. Change-Id: I86cefd027e945281fd7ab5d966c770163d69b484 --- gnu/packages/base.scm | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 14c9728d38c..ca08ae8ed1e 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -1733,7 +1733,9 @@ command.") (copy-recursively (string-append out "/share/zoneinfo-leaps") (string-append out "/share/zoneinfo/right")) (delete-file-recursively - (string-append out "/share/zoneinfo-leaps"))))) + (string-append out "/share/zoneinfo-leaps")) + (install-file "leap-seconds.list" + (string-append out "/share/zoneinfo"))))) (delete 'configure)))) (inputs (list (origin (method url-fetch) @@ -1762,20 +1764,6 @@ and daylight-saving rules.") ;;; package. (define-public tzdata-for-tests tzdata) -;;; TODO: Move the 'install-leap-seconds' phase into the main package's -;;; 'post-install' phase on the next rebuild cycle. -(define-public tzdata/leap-seconds - (hidden-package - (package/inherit tzdata - (arguments - (substitute-keyword-arguments (package-arguments tzdata) - ((#:phases phases) - #~(modify-phases #$phases - (add-after 'post-install 'install-leap-seconds - (lambda _ - (install-file "leap-seconds.list" - (string-append #$output "/share/zoneinfo"))))))))))) - (define-public libiconv (package (name "libiconv") -- cgit v1.2.3