diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-30 19:40:50 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-08-25 15:22:31 +0900 |
| commit | 62c3a6098e95e69a45ba3bf5df90af7daa5a3142 (patch) | |
| tree | dbaf86cd7b4ea81d0b412b94ec1bcdae07243613 /gnu | |
| parent | c9de7ffac179e7e65304febc74a273fc426a0687 (diff) | |
gnu: Add taler-docs.
* gnu/packages/taler.scm (taler-docs): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/taler.scm | 96 |
2 files changed, 97 insertions, 0 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index f5b89d7255d..903bcdcf0b8 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -675,6 +675,7 @@ GNU_SYSTEM_MODULES = \ | |||
| 675 | %D%/packages/syncthing.scm \ | 675 | %D%/packages/syncthing.scm \ |
| 676 | %D%/packages/synergy.scm \ | 676 | %D%/packages/synergy.scm \ |
| 677 | %D%/packages/syndication.scm \ | 677 | %D%/packages/syndication.scm \ |
| 678 | %D%/packages/taler.scm \ | ||
| 678 | %D%/packages/task-management.scm \ | 679 | %D%/packages/task-management.scm \ |
| 679 | %D%/packages/task-runners.scm \ | 680 | %D%/packages/task-runners.scm \ |
| 680 | %D%/packages/tbb.scm \ | 681 | %D%/packages/tbb.scm \ |
diff --git a/gnu/packages/taler.scm b/gnu/packages/taler.scm new file mode 100644 index 00000000000..9d3289cdfb6 --- /dev/null +++ b/gnu/packages/taler.scm | |||
| @@ -0,0 +1,96 @@ | |||
| 1 | ;;; GNU Guix --- GNU Taler components and extension | ||
| 2 | ;;; Copyright © 2026 Maxim Cournoyer <maxim@guixotic.coop> | ||
| 3 | ;;; | ||
| 4 | ;;; This file is part of GNU Guix. | ||
| 5 | ;;; | ||
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 7 | ;;; under the terms of the GNU General Public License as published by | ||
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 9 | ;;; your option) any later version. | ||
| 10 | ;;; | ||
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | ;;; GNU General Public License for more details. | ||
| 15 | ;;; | ||
| 16 | ;;; You should have received a copy of the GNU General Public License | ||
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | (define-module (gnu packages taler) | ||
| 20 | #:use-module (gnu packages python) | ||
| 21 | #:use-module (gnu packages sphinx) | ||
| 22 | #:use-module (gnu packages texinfo) | ||
| 23 | #:use-module (guix gexp) | ||
| 24 | #:use-module ((guix licenses) #:prefix license:) | ||
| 25 | #:use-module (guix packages) | ||
| 26 | #:use-module (guix git-download) | ||
| 27 | #:use-module (guix build-system gnu)) | ||
| 28 | |||
| 29 | (define-public taler-docs | ||
| 30 | ;; No tag or commit; use the latest commit. | ||
| 31 | (let ((commit "1557e7a3547cfa04b111c40ce0feef9581121635") | ||
| 32 | (revision "0")) | ||
| 33 | (package | ||
| 34 | (name "taler-docs") | ||
| 35 | (version (git-version "0.0.0" revision commit)) | ||
| 36 | (source (origin | ||
| 37 | (method git-fetch) | ||
| 38 | (uri (git-reference | ||
| 39 | (url "git://git.taler.net/taler-docs.git") | ||
| 40 | (commit commit))) | ||
| 41 | (file-name (git-file-name name version)) | ||
| 42 | (sha256 | ||
| 43 | (base32 | ||
| 44 | "1lhcvqlazsqbj391d7dlp6rzblld4jij8z2vym2cbgz4mzb2vqj1")) | ||
| 45 | (modules '((guix build utils) | ||
| 46 | (ice-9 ftw) | ||
| 47 | (srfi srfi-26))) | ||
| 48 | (snippet | ||
| 49 | #~(begin | ||
| 50 | ;; XXX: 'delete-all-but' is copied from the turbovnc package. | ||
| 51 | (define (delete-all-but directory . preserve) | ||
| 52 | (with-directory-excursion directory | ||
| 53 | (let* ((pred (negate (cut member <> | ||
| 54 | (cons* "." ".." preserve)))) | ||
| 55 | (items (scandir "." pred))) | ||
| 56 | (for-each (cut delete-file-recursively <>) items)))) | ||
| 57 | ;; Delete 3rd party bundled Sphinx extensions. | ||
| 58 | (delete-all-but "_exts" | ||
| 59 | ;; These are custom extensions. | ||
| 60 | "ebicsdomain.py" | ||
| 61 | "typescriptdomain.py") | ||
| 62 | (substitute* "conf.py" | ||
| 63 | (("httpdomain.httpdomain") | ||
| 64 | "sphinxcontrib.httpdomain")))))) | ||
| 65 | (build-system gnu-build-system) | ||
| 66 | (arguments | ||
| 67 | (list | ||
| 68 | #:tests? #f ;no tests | ||
| 69 | #:make-flags #~(list "info" "man") | ||
| 70 | #:phases | ||
| 71 | #~(modify-phases %standard-phases | ||
| 72 | (delete 'configure) ;no configure phase | ||
| 73 | (replace 'install | ||
| 74 | (lambda _ | ||
| 75 | (invoke "make" "-C" "_build/texinfo" | ||
| 76 | "install-info" (string-append "infodir=" #$output | ||
| 77 | "/share/info")) | ||
| 78 | (let ((mandir (string-append #$output "/share/man"))) | ||
| 79 | (mkdir-p mandir) | ||
| 80 | (copy-recursively "_build/man" mandir))))))) | ||
| 81 | (native-inputs | ||
| 82 | (list python-minimal | ||
| 83 | python-myst-parser | ||
| 84 | python-sphinx | ||
| 85 | python-sphinx-design | ||
| 86 | python-sphinx-multitoc-numbering | ||
| 87 | python-sphinx-plantuml | ||
| 88 | python-sphinxcontrib-httpdomain | ||
| 89 | texinfo)) | ||
| 90 | (home-page "https://www.taler.net/") | ||
| 91 | (synopsis "Documentation of the GNU Taler project") | ||
| 92 | (description "This package includes the complete documentation of all | ||
| 93 | the GNU Taler components, as Texinfo manuals and man pages.") | ||
| 94 | ;; The source headers say AGPL 2.1+, which is odd since there isn't an | ||
| 95 | ;; AGPL 2.1 version (see: <https://bugs.gnunet.org/view.php?id=11573>). | ||
| 96 | (license license:agpl3+)))) | ||
