diff --git a/nongnu/packages/productivity.scm b/nongnu/packages/productivity.scm index 7c92191..1af77ef 100644 --- a/nongnu/packages/productivity.scm +++ b/nongnu/packages/productivity.scm @@ -1,6 +1,7 @@ ;;; SPDX-License-Identifier: GPL-3.0-or-later ;;; Copyright © 2023 Giacomo Leidi ;;; Copyright © 2024 Karl Hallsby (define-module (nongnu packages productivity) #:use-module (gnu packages base) @@ -123,7 +124,7 @@ synchronization.") (define-public zotero (package (name "zotero") - (version "6.0.35") + (version "7.0.9") (source (origin ;; Can switch to git-fetch from Github too! @@ -133,16 +134,22 @@ synchronization.") version "/Zotero-" version "_linux-x86_64.tar.bz2")) (sha256 (base32 - "17f9an43jwnqpcslbvnhg7hrzkvs2whzwg4ysdgy2gl4m6cln18w")) + "047q8d23fjvb1s7l116nvbarbf6myp3srfiwfb93g314n8xarjgn")) (snippet #~(begin (use-modules (guix build utils)) + (invoke (string-append #$unzip "/bin/unzip") "app/omni.ja" + "defaults/preferences/zotero.js") ;; Disable Zotero's automatic update feature. - (substitute* "defaults/preferences/prefs.js" + (substitute* "defaults/preferences/zotero.js" (("pref\\(\"app.update.enabled\", true\\)") "pref(\"app.update.enabled\", false)") (("pref\\(\"app.update.auto\", true\\)") - "pref(\"app.update.auto\", false)")))))) + "pref(\"app.update.auto\", false)")) + (invoke (string-append #$zip "/bin/zip") "-mf" "app/omni.ja" + "defaults/preferences/zotero.js") + (rmdir "defaults/preferences") + (rmdir "defaults"))))) (build-system chromium-binary-build-system) (arguments (list @@ -191,13 +198,13 @@ synchronization.") (#f "Collect, organize, cite, and share your research sources"))))) (add-after 'install 'install-icons (lambda _ - (let ((icon-sizes (list 16 32 48 256))) + (let ((icon-sizes (list 32 64 128))) (for-each (lambda (size) (mkdir-p (string-append #$output "/share/icons/hicolor/" size "x" size "/apps")) (copy-file - (string-append "chrome/icons/default/default" size ".png") + (string-append "icons/icon" size ".png") (string-append #$output "/share/icons/hicolor/" size "x" size "/apps/zotero.png"))) (map number->string icon-sizes))))))))