| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | (define-module (gnu packages rednotebook)
|
| 21 | #:use-module (guix gexp)
|
| 22 | #:use-module (guix packages)
|
| 23 | #:use-module (guix git-download)
|
| 24 | #:use-module (guix build-system pyproject)
|
| 25 | #:use-module ((guix licenses) #:prefix license:)
|
| 26 | #:use-module (gnu packages bash)
|
| 27 | #:use-module (gnu packages check)
|
| 28 | #:use-module (gnu packages gettext)
|
| 29 | #:use-module (gnu packages glib)
|
| 30 | #:use-module (gnu packages gtk)
|
| 31 | #:use-module (gnu packages python)
|
| 32 | #:use-module (gnu packages python-build)
|
| 33 | #:use-module (gnu packages python-xyz)
|
| 34 | #:use-module (gnu packages webkit))
|
| 35 |
|
| 36 | (define-public rednotebook
|
| 37 | (package
|
| 38 | (name "rednotebook")
|
| 39 | (version "2.41")
|
| 40 | (source
|
| 41 | (origin
|
| 42 | (method git-fetch)
|
| 43 | (uri (git-reference
|
| 44 | (url "https://github.com/jendrikseipp/rednotebook")
|
| 45 | (commit (string-append "v" version))))
|
| 46 | (file-name (git-file-name name version))
|
| 47 | (sha256
|
| 48 | (base32 "1nljj227lykl4gq1qvvv0pj00k8pbi3njm4agz7wsfcihz6dlrxi"))))
|
| 49 | (build-system pyproject-build-system)
|
| 50 | (arguments
|
| 51 | (list
|
| 52 | #:imported-modules
|
| 53 | `((guix build glib-or-gtk-build-system)
|
| 54 | ,@%pyproject-build-system-modules)
|
| 55 | #:modules
|
| 56 | `((ice-9 match)
|
| 57 | (guix build pyproject-build-system)
|
| 58 | ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
|
| 59 | (guix build utils))
|
| 60 | #:phases
|
| 61 | #~(modify-phases %standard-phases
|
| 62 | (add-before 'sanity-check 'configure-tests
|
| 63 | (lambda _
|
| 64 | (setenv "HOME" (getcwd))))
|
| 65 | |
| 66 | |
| 67 | (add-before 'wrap 'wrap-with-library-paths
|
| 68 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 69 | (let ((webkitgtk-bin (search-input-file inputs
|
| 70 | "bin/WebKitWebDriver")))
|
| 71 | (wrap-program (string-append #$output "/bin/rednotebook")
|
| 72 | `("GI_TYPELIB_PATH" ":" prefix
|
| 73 | (,(getenv "GI_TYPELIB_PATH")))
|
| 74 | `("LD_LIBRARY_PATH" ":" prefix
|
| 75 | (,(string-append (dirname (dirname webkitgtk-bin))
|
| 76 | "/lib"))))))))))
|
| 77 | (native-inputs (list gettext-minimal python-pytest python-setuptools))
|
| 78 | (inputs
|
| 79 | (list bash-minimal
|
| 80 | gtk+
|
| 81 | gtksourceview-3
|
| 82 | python-pyyaml
|
| 83 | python-pygobject-3.50
|
| 84 | webkitgtk-for-gtk3))
|
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | (home-page "https://www.rednotebook.app")
|
| 90 | (synopsis "Daily journal with calendar, templates and keyword searching")
|
| 91 | (description
|
| 92 | "RedNotebook is a modern desktop journal. It lets you format, tag and
|
| 93 | search your entries. You can also add pictures, links and customizable
|
| 94 | templates, spell check your notes, and export to plain text, HTML, Latex or
|
| 95 | PDF.")
|
| 96 | (license (list license:gpl2+ |
| 97 | license:lgpl3+ |
| 98 | license:gpl3+)))) |