Subject: [bug#56331] [PATCH] gnu: Update tzdata-for-tests.

From: Antero Mejr <[email-masked]>
Date: Fri, 1 Jul 2022 13:03:14 +0000

* gnu/packages/base.scm (tzdata-for-tests): Install leap-seconds.list.
---
 gnu/packages/base.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 4bdc3e7792..a1d57611ee 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1398,7 +1398,20 @@ (define-public tzdata
 ;;;
 ;;; Please make this a hidden-package if it is different from the primary tzdata
 ;;; package.
-(define-public tzdata-for-tests tzdata)
+(define-public tzdata-for-tests
+  (hidden-package
+   (package
+     (inherit tzdata)
+     (arguments
+      (substitute-keyword-arguments (package-arguments tzdata)
+        ((#:phases phases)
+         #~(modify-phases #$phases
+             (add-after 'install 'copy-leap-seconds-list
+               (lambda _
+                 (copy-file "leap-seconds.list"
+                            (string-append
+                             #$output
+                             "/share/zoneinfo/leap-seconds.list")))))))))))
 
 (define-public libiconv
   (package
-- 
2.36.1