gnu: Add mupdf-1.24.

Needed for sioyek.

* gnu/packages/pdf.scm (mupdf-1.24): New variable.

Change-Id: I66a4ab1aa33da41c3c387bc7ce6850347ef7c79c
This commit is contained in:
Ekaitz Zarraga 2025-01-12 14:18:16 +01:00
parent 5e4cc506c7
commit 227082900a
No known key found for this signature in database
GPG key ID: FDB952BD3F7356D6

View file

@ -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")