guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: Add emacs-lexic.


From: guix-commits
Subject: 02/04: gnu: Add emacs-lexic.
Date: Fri, 20 Oct 2023 12:13:59 -0400 (EDT)

snape pushed a commit to branch master
in repository guix.

commit a4f4d71db56a6d4d150854649f429fc2d49c2a74
Author: pinoaffe <pinoaffe@gmail.com>
AuthorDate: Tue Jul 25 23:06:07 2023 +0200

    gnu: Add emacs-lexic.
    
    * gnu/packages/emacs-xyz.scm (emacs-lexic): New variable.
    
    Signed-off-by: Clément Lassieur <clement@lassieur.org>
---
 gnu/packages/emacs-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7e858ac874..94d3f69299 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -37038,6 +37038,40 @@ dict.org) from within Emacs.")
 to the @url{https://multitran.com} online dictionary.")
     (license license:gpl3+)))
 
+(define-public emacs-lexic
+  (let ((commit "f9b3de4d9c2dd1ce5022383e1a504b87bf7d1b09")
+        (revision "0"))
+    (package
+      (name "emacs-lexic")
+      (version (git-version "0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.tecosaur.net/tec/lexic";)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "02iz8dh18gb1q97v8ghcd3lavkf28sqbrk0bx6jzzryp69ickk4h"))))
+      (build-system emacs-build-system)
+      (inputs (list sdcv))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'set-sdcv-path
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (emacs-substitute-variables "lexic.el"
+                 ("lexic-program-path"
+                  (string-append (assoc-ref inputs "sdcv")
+                                 "/bin/sdcv"))))))))
+      (home-page "https://git.tecosaur.net/tec/lexic";)
+      (synopsis "Find out more about words using Stardict dictionaries")
+      (description "This provides a major mode to view the output of
+dictionary tools, and utilities that perform searches and nicely format the
+results.  Currently tied to sdcv, but this is intended to be changed in the
+future.")
+      (license license:gpl3+))))
+
 (define-public emacs-blacken
   (package
     (name "emacs-blacken")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]