From bf31052841b5ada64bbc1eeadfcc098a09f3a605 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 8 Apr 2026 20:18:26 +0200 Subject: [PATCH] gnu: libzim: Fix package. This is a follow-up to 1ae186f73c870bff063a94161bd74b974659a94c. * gnu/packages/web.scm (libzim) [native-inputs]: Fetch testing-suite with git. [arguments]<#:configure-flags>: Refresh accordingly. Change-Id: I1a2e95ecbf0f3cc1e2b6fef58cb84d52c448968e Signed-off-by: Rutherther Merges: #7750 --- gnu/packages/web.scm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index cbad307ba3..5115db3bfd 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -9957,7 +9957,8 @@ grepping the list.") #:configure-flags #~(list (string-append "-Dtest_data_dir=" - #+(this-package-native-input testsuite-file-name))))) + #+(this-package-native-input testsuite-file-name) + "/data")))) (inputs (list icu4c python-wrapper ; for libzim-compile-resources @@ -9970,17 +9971,16 @@ grepping the list.") googletest ;; The testsuite is a pre-generated artifact that can be ;; regenerated from the upstream repository, but it - ;; explicitely advises against it. Not knowing better, - ;; not doing it for now. + ;; explicitely advises against it. Use it pregenerated. + ;; Using git-fetch allows us to avoid additional unpacking. (origin - (method url-fetch) - (uri (apply format #f "https://github.com/openzim/\ - zim-testing-suite/releases/download/~a/zim-testing-suite-~a.tar.gz" - (make-list 2 "0.9.0"))) - (file-name "zim-testing-suite.tar.gz") + (method git-fetch) + (uri (git-reference + (url "https://github.com/openzim/zim-testing-suite") + (commit testsuite-version))) + (file-name testsuite-file-name) (sha256 - (base32 - "175916xb24xrrgwhdcnsbmpzvddz7mynacm73595qias5ias94hi"))))) + (base32 "14ac58i0zzvzssl5fyykc494jlw4ia8dhfr10hmi8h3gfn08dm62"))))) (home-page "https://wiki.openzim.org/wiki/Main_Page") (synopsis "Reference implementation of the ZIM specification") (description "The openZIM project proposes offline storage solutions for