Subject: [bug#77913] [PATCH] gnu: Add emacs-scad-dbus

From: nomike <[email-masked]>
Date: Fri, 16 May 2025 02:01:48 +0200

* gnu/packages/engineering.scm (emacs-scad-dbus): New variable

Change-Id: Ie0f0835739fcd1cbcacdaeb3fcd073e870262a9e
---
I've updated the package definition to have a better synopsis and
I cleaned up the inputs.

I hope this is OK now.

 gnu/packages/engineering.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 2f1f87d47e..c2e8a965f6 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3347,6 +3347,30 @@ (define-public emacs-scad-mode
     (home-page "https://openscad.org/")
     (license license:gpl3+)))
 
+(define-public emacs-scad-dbus
+  (package
+    (name "emacs=scad-dbus")
+    (version "0.1")
+    (properties '((release-tag-prefix . "^v")
+                  (release-tag-version-delimiter . ".")))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/lenbok/scad-dbus")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "09p1icdiwq6r5clnqljg058vn84acyf33jwqpfjkkm0l5pbvcgn0"))))
+    (build-system emacs-build-system)
+    (inputs (list emacs-scad-mode emacs-hydra emacs-compat))
+    (synopsis "Control OpenSCAD from Emacs using D-Bus")
+    (description
+     "scad-dbus allows controlling @code{OpenSCAD} from within @code{Emacs} via
+D-Bus without having to switch programs or reach for the mouse.")
+    (home-page "https://github.com/lenbok/scad-dbus")
+    (license license:gpl3+)))
+
 (define-public ondsel-solver
   (let ((commit "2e3659c4bce3e6885269e0cb3d640261b2a91108")
         (revision "1"))
-- 
2.49.0