;;; SPDX-License-Identifier: GPL-3.0-or-later ;;; Copyright © 2023 Giacomo Leidi ;;; Copyright © 2024 Karl Hallsby string icon-sizes)))))))) ;; The zotero script that we wrap (which produces .zotero-real), has ;; this open file limit step done for us. If that script ever goes ;; away, then we can just uncomment this one. ;; (add-after 'install-wrapper 'raise-open-file-limit ;; (lambda _ ;; (let ((file (string-append #$output "/bin/zotero"))) ;; (with-output-to-file file ;; (lambda _ ;; (display ;; (string-append ;; "#!/bin/sh\n" ;; ;; Raise the open files limit because Mozilla file ;; ;; functions leave files open for a tiny bit longer than ;; ;; necessary, so an installation with many translators and ;; ;; styles can exceed the default 1024 file limit. ulimit ;; ;; is a shell built-in, so we cannot use Guix's ;; ;; program-file function. ;; "ulimit -n 4096\n" ;; #$output "/bin/zotero-bin" " -app " #$output "/application.ini" " \"$@\"")))) ;; (chmod file #o755)))) (inputs (list dbus-glib libxt)) (synopsis "Collect, organize, cite, and share your research sources") ;; If we build from source, then we may be able to support more ;; architectures. But Zotero is a Firefox/Electron app that uses a lot of ;; JavaScript, which may be problematic when packaging using Guix. (supported-systems '("x86_64-linux")) (description "Zotero is a research reference and bibliography tool. Zotero helps you organize your research any way you want. You can sort items into collections and tag them with keywords. Zotero instantly creates references and bibliographies for any text editor, and directly inside Word, LibreOffice, and Google Docs for over 10,000 citation styles.") (home-page "https://www.zotero.org") (license free-license:agpl3)))