aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/base.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2017-03-08 18:03:38 -0500
committerLeo Famulari <leo@famulari.name>2017-03-12 20:45:46 -0400
commit3ffaec136fab017e6cc094287da207cf30f05974 (patch)
treee8cb957e8937c25f7c37b23420466fb343d65ddc /gnu/packages/base.scm
parente4d34cd0f0ced54210ed2df2b251430a9c98c6f4 (diff)
downloadguix-3ffaec136fab017e6cc094287da207cf30f05974.tar
guix-3ffaec136fab017e6cc094287da207cf30f05974.tar.gz
gnu: Add a tzdata variant for testing purposes.
* gnu/packages/base.scm (tzdata-2017a): New variable. * gnu/packages/glib.scm (glib)[inputs]: Remove tzdata. [native-inputs]: Add tzdata-2017a. [arguments]: Add tzdata-2017a to #:disallowed-references. * gnu/packages/statistics.scm (r)[inputs]: Remove tzdata. [native-inputs]: Add tzdata-2017a. [arguments]: Add tzdata-2017a to #:disallowed-references.
Diffstat (limited to 'gnu/packages/base.scm')
-rw-r--r--gnu/packages/base.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index c452385a90..ba9c820efa 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1044,6 +1044,31 @@ reflect changes made by political bodies to time zone boundaries, UTC offsets,
and daylight-saving rules.")
(license public-domain)))
+;;; A "fixed" version of tzdata, which is used in the test suites of
+;;; glib and R. We can update this whenever we are able to rebuild
+;;; thousands of packages (for example, in a core-updates rebuild).
+(define-public tzdata-2017a
+ (package
+ (inherit tzdata)
+ (version "2017a")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://www.iana.org/time-zones/repository"
+ "/releases/tzdata" version ".tar.gz"))
+ (sha256
+ (base32
+ "1mmv4rvcs12lrvgghw4fidczvb69yv69cmzknghcvw1c196mqfnz"))))
+ (inputs `(("tzcode" ,(origin
+ (method url-fetch)
+ (uri (string-append
+ "http://www.iana.org/time-zones/repository/releases/tzcode"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1b1q7gnlsh5hjgs5065pvajd37rmbc3k9b8cgzad1vcrifswdwh2"))))))))
+
+
(define-public libiconv
(package
(name "libiconv")