From 227082900a22c050d726142be2bd4ab32a5d8032 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 12 Jan 2025 14:18:16 +0100 Subject: [PATCH] gnu: Add mupdf-1.24. Needed for sioyek. * gnu/packages/pdf.scm (mupdf-1.24): New variable. Change-Id: I66a4ab1aa33da41c3c387bc7ce6850347ef7c79c --- gnu/packages/pdf.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 65429d8657..f85b7268f7 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -905,6 +905,31 @@ (define-public mupdf license:silofl1.1 ;resources/fonts/{han,noto,sil,urw} license:asl2.0)))) ; resources/fonts/droid +(define-public mupdf-1.24 ; Needed for sioyek + (package + (inherit mupdf) + (name "mupdf") + (version "1.24.7") + (source + (origin + (method url-fetch) + (uri (string-append "https://mupdf.com/downloads/archive/" + "mupdf-" version "-source.tar.lz")) + (sha256 + (base32 "0hydmp8sdnkrkpqyysa6klkxbwv9awf1xc753r27gcj7ds7375fj")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-1))) + (snippet + ;; Remove bundled software. Keep patched variants. + #~(with-directory-excursion "thirdparty" + (let ((keep '("README" "extract" "freeglut" "lcms2"))) + (for-each delete-file-recursively + (lset-difference string=? + (scandir ".") + (cons* "." ".." keep)))))))))) + + (define-public qpdf (package (name "qpdf")