Add emacs-mqtt-mode

Evgeny PisemskyFri Nov 28 21:55:42+0300 2025

bb3f59d

Add emacs-mqtt-mode

modules/cogd/packages/dpic.scm

44
55
(define-module (cogd packages dpic))
66
7-
(use-modules (guix packages)
8-
             (guix git-download)
9-
             (guix gexp)
10-
             (guix utils)
11-
             (guix build-system gnu)
12-
             ((guix licenses) #:prefix license:))
7+
(use-modules (gnu packages diagram))
138
14-
(define-public dpic
15-
  (package
16-
    (name "dpic")
17-
    (synopsis "Implementation of the pic language")
18-
    (description
19-
     "Dpic is an implementation of the pic \"little language\" for creating
20-
line drawings and illustrations for documents, web pages, and other
21-
uses.")
22-
    (home-page "https://gitlab.com/aplevich/dpic")
23-
    (license (list license:bsd-2 license:cc-by3.0 license:lppl1.3c))
24-
    (properties '((commit . "1354b63eb7120e5d0d40855c18d69e413a636ef2")
25-
                  (revision . "1")))
26-
    (version (git-version "0"
27-
                          (assoc-ref properties 'revision)
28-
                          (assoc-ref properties 'commit)))
29-
    (source
30-
     (origin
31-
       (method git-fetch)
32-
       (uri (git-reference
33-
             (url (string-append home-page ".git"))
34-
             (commit (assoc-ref properties 'commit))))
35-
       (file-name (git-file-name name version))
36-
       (sha256
37-
        (base32 "00r4dqwmlbpbb7kshprp9n29cmb8vxy345xqpzlba6bnw5vrgpv9"))))
38-
    (build-system gnu-build-system)
39-
    (arguments
40-
     (list
41-
      #:tests? #f
42-
      #:make-flags
43-
      #~(list (string-append "CC=" #$(cc-for-target))
44-
              (string-append "DESTDIR=" #$output))))))
9+
(re-export dpic)

modules/cogd/packages/emacs-xyz.scm

22
;;;
33
;;; SPDX-License-Identifier: GPL-3.0-or-later
44
5-
(define-library (cogd packages emacs-xyz)
6-
  (export emacs-guix/fixed)
7-
  (import (scheme base)
8-
          (guix packages)
9-
          (only (gnu packages emacs-xyz) emacs-guix))
10-
  (begin
11-
    (define emacs-guix/fixed
12-
      (package
13-
        (inherit emacs-guix)
14-
        (source
15-
         (origin
16-
           (inherit (package-source emacs-guix))
17-
           (modules '((guix build utils)))
18-
           (snippet '(substitute* "elisp/guix-pcomplete.el"
19-
                       ((".*autoload")
20-
                        "")))))))))
5+
(define-module (cogd packages emacs-xyz))
6+
7+
(use-modules (guix packages)
8+
             (guix git-download)
9+
             (guix build-system emacs)
10+
             ((guix licenses)
11+
              #:prefix license:)
12+
             ((gnu packages emacs-xyz)
13+
              #:select (emacs-guix))
14+
             (gnu packages emacs-build))
15+
16+
(define-public emacs-guix/fixed
17+
  (package
18+
    (inherit emacs-guix)
19+
    (source
20+
     (origin
21+
       (inherit (package-source emacs-guix))
22+
       (modules '((guix build utils)))
23+
       (snippet '(substitute* "elisp/guix-pcomplete.el"
24+
                   ((".*autoload")
25+
                    "")))))))
26+
27+
(define-public emacs-mqtt-mode
28+
  (package
29+
    (name "emacs-mqtt-mode")
30+
    (version "0.1.0")
31+
    (home-page "https://github.com/andrmuel/mqtt-mode")
32+
    (source
33+
     (origin
34+
       (method git-fetch)
35+
       (uri (git-reference
36+
             (url home-page)
37+
             (commit version)))
38+
       (file-name (git-file-name name version))
39+
       (sha256
40+
        (base32 "1ci1w4yma6axiigz55b2ip0r7zy8v215532jc0rkb3wyn14nsrh7"))))
41+
    (build-system emacs-build-system)
42+
    (propagated-inputs (list emacs-dash))
43+
    (synopsis "MQTT client for Emacs")
44+
    (description
45+
     "This package provides a major mode for interaction with MQTT servers.")
46+
    (license license:gpl3+)))