guix_mirror_bot pushed a commit to branch master
in repository guix.

commit f219acdb3a32fe87bbc5432f0b96e76e52fcfb6d
Author: Lilah Tascheter <[email protected]>
AuthorDate: Wed Aug 6 12:03:29 2025 -0500

    gnu: base: Add tzdata with leap-seconds.list.
    
    tzdata itself doesn't provide this file, which is needed for hare.
    
    * gnu/packages/base.scm (tzdata/leap-seconds): New variable.
    
    Change-Id: Ie13de687241ed0b05a04080381d3ab31c3e7f3b2
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/base.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 66d4719998..6836c23260 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1883,6 +1883,20 @@ 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")

Reply via email to