From 3fb11bd107e06b186e2631f04e4c97933458a36c Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Fri, 3 May 2024 10:28:01 -0500 Subject: nongnu: Add zotero. * nongnu/packages/productivity.scm (zotero): New variable. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/productivity.scm | 120 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 119 insertions(+), 1 deletion(-) (limited to 'nongnu') diff --git a/nongnu/packages/productivity.scm b/nongnu/packages/productivity.scm index 1241d38..4bdc8fa 100644 --- a/nongnu/packages/productivity.scm +++ b/nongnu/packages/productivity.scm @@ -1,11 +1,13 @@ ;;; 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))) -- cgit v1.2.3