Add cogd-manual

Evgeny PisemskySun Mar 09 23:30:33+0300 2025

7deb44c

Add cogd-manual

manuals/cogd.skb unknown status 1

1+
;;; SPDX-FileCopyrightText: 2025 Evgeny Pisemsky <mail@pisemsky.site>
2+
;;;
3+
;;; SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
(document :title "Channel of guix definitions"
6+
          :author (list (author :name "Evgeny Pisemsky"
7+
                                :email (mailto "mail@pisemsky.site")))
8+
          :info-dir-entry "Channel of guix definitions"
9+
          :info-dir-category "System administration"
10+
  (chapter :title [Modules]
11+
    (section :title [Packages])
12+
    (section :title [Services])))

modules/cogd/packages/guile-xyz.scm

1010
             (guix gexp)
1111
             (guix build-system gnu)
1212
             (guix build-system guile)
13+
             (guix build-system copy)
1314
             ((guix licenses) #:prefix license:)
15+
             (gnu packages skribilo)
1416
             (gnu packages bash)
1517
             (gnu packages guile)
1618
             (gnu packages guile-xyz)

9193
      (description
9294
       "This package provides a very simple pastebin written in Guile Scheme.")
9395
      (license license:gpl3+))))
96+
97+
(define-public cogd-manual
98+
  (package
99+
    (name "cogd-manual")
100+
    (version "git")
101+
    (source
102+
     (local-file "../../../manuals" "cogd-manuals"
103+
                 #:recursive? #t))
104+
    (build-system copy-build-system)
105+
    (arguments
106+
     (list
107+
      #:install-plan
108+
      #~'(("cogd.info" "share/info/"))
109+
      #:phases
110+
      #~(modify-phases %standard-phases
111+
          (add-before 'install 'build
112+
            (lambda _
113+
              (invoke "skribilo"
114+
                      "-t"
115+
                      "info"
116+
                      "-o"
117+
                      "cogd.info"
118+
                      "cogd.skb"))))))
119+
    (native-inputs (list skribilo))
120+
    (home-page "https://repo.pisemsky.site/cogd")
121+
    (synopsis "Manual for the cogd")
122+
    (description
123+
     "This package provides an info manual for the \"Channel of guix
124+
definitions\".")
125+
    (license license:gpl3+)))