Put in earplugs

This commit is contained in:
nik gaffney 2024-03-06 14:21:18 +01:00
parent 03bf2bf0f3
commit c71714725c
Signed by: nik
GPG key ID: 989F5E6EDB478160

View file

@ -27,69 +27,69 @@
;; or via flatpack? https://flathub.org/apps/org.zotero.Zotero ;; or via flatpack? https://flathub.org/apps/org.zotero.Zotero
(define-module (zzkt packages zotero) ;; (define-module (zzkt packages zotero)
#:use-module (guix packages) ;; #:use-module (guix packages)
#:use-module (gnu packages) ;; #:use-module (gnu packages)
#:use-module ((guix licenses) #:prefix license:) ;; #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download) ;; #:use-module (guix download)
#:use-module (gnu packages base) ;; #:use-module (gnu packages base)
#:use-module (gnu packages gcc) ;; #:use-module (gnu packages gcc)
#:use-module (gnu packages gtk) ;; #:use-module (gnu packages gtk)
#:use-module (gnu packages xorg) ;; #:use-module (gnu packages xorg)
#:use-module (gnu packages glib) ;; #:use-module (gnu packages glib)
;; #:use-module (nonguix build-system binary) ;; requires guix/guile path config? ;; #:use-module (nonguix build-system binary) ;; requires guix/guile path config?
#:use-module (ice-9 regex)) ;; #:use-module (ice-9 regex))
(define-public zotero ;; (define-public zotero
(package ;; (package
(name "zotero") ;; (name "zotero")
(version "6.0.26") ;; (version "6.0.26")
(source ;; (source
(origin ;; (origin
(method url-fetch) ;; (method url-fetch)
(uri (string-append "https://download.zotero.org/client/release/" ;; (uri (string-append "https://download.zotero.org/client/release/"
version "/Zotero-" version "_linux-x86_64.tar.bz2")) ;; version "/Zotero-" version "_linux-x86_64.tar.bz2"))
(sha256 ;; (sha256
(base32 "0h1bizcqlk22h7nvhnyp3ppymv2hrk7133hgmp15hl3bvfzz7nh6")))) ;; (base32 "0h1bizcqlk22h7nvhnyp3ppymv2hrk7133hgmp15hl3bvfzz7nh6"))))
(build-system binary-build-system) ;; (build-system binary-build-system)
(arguments ;; (arguments
`(#:patchelf-plan `(("zotero-bin" ("gcc:lib" "glibc")) ;; `(#:patchelf-plan `(("zotero-bin" ("gcc:lib" "glibc"))
("libmozgtk.so" ("gtk+")) ;; ("libmozgtk.so" ("gtk+"))
("libxul.so" ("libx11" "dbus-glib" "libxt" ;; ("libxul.so" ("libx11" "dbus-glib" "libxt"
"libgthread"))) ;; "libgthread")))
#:install-plan '(("./" "/opt/zotero/")) ;; #:install-plan '(("./" "/opt/zotero/"))
#:phases (modify-phases %standard-phases ;; #:phases (modify-phases %standard-phases
(add-after 'patch-usr-bin-file 'patch-launcher ;; (add-after 'patch-usr-bin-file 'patch-launcher
(lambda* (#:key outputs #:allow-other-keys) ;; (lambda* (#:key outputs #:allow-other-keys)
(substitute* "zotero" ;; (substitute* "zotero"
((,(regexp-quote ;; ((,(regexp-quote
"$(dirname \"$(readlink -f \"$0\")\")")) ;; "$(dirname \"$(readlink -f \"$0\")\")"))
(string-append (assoc-ref outputs "out") ;; (string-append (assoc-ref outputs "out")
"/opt/zotero"))))) ;; "/opt/zotero")))))
(add-after 'install 'install-bin ;; (add-after 'install 'install-bin
(lambda* (#:key outputs #:allow-other-keys) ;; (lambda* (#:key outputs #:allow-other-keys)
(mkdir-p (string-append (assoc-ref outputs "out") "/bin")) ;; (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
(symlink (string-append (assoc-ref outputs "out") ;; (symlink (string-append (assoc-ref outputs "out")
"/opt/zotero/zotero") ;; "/opt/zotero/zotero")
(string-append (assoc-ref outputs "out") ;; (string-append (assoc-ref outputs "out")
"/bin/zotero")) ;; "/bin/zotero"))
(mkdir-p (string-append (assoc-ref outputs "out") ;; (mkdir-p (string-append (assoc-ref outputs "out")
"/share/applications")) ;; "/share/applications"))
(symlink (string-append (assoc-ref outputs "out") ;; (symlink (string-append (assoc-ref outputs "out")
"/opt/zotero/zotero.desktop") ;; "/opt/zotero/zotero.desktop")
(string-append (assoc-ref outputs "out") ;; (string-append (assoc-ref outputs "out")
"/share/applications/zotero.desktop"))))))) ;; "/share/applications/zotero.desktop")))))))
(inputs (list coreutils ;; (inputs (list coreutils
gcc ;; gcc
gtk+ ;; gtk+
libx11 ;; libx11
glib ;; glib
libxt ;; libxt
dbus-glib)) ;; dbus-glib))
(synopsis ;; (synopsis
"Your personal research assistant.") ;; "Your personal research assistant.")
(description ;; (description
"Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share research.") ;; "Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share research.")
(home-page "https://www.zotero.org/") ;; (home-page "https://www.zotero.org/")
(license license:gpl3))) ;; (license license:gpl3)))