unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62200] [PATCH] gnu: Add emacs-nyxt.
@ 2023-03-15 12:19 conses
  2023-03-21  9:04 ` Nicolas Goaziou
  2023-03-21 11:17 ` [bug#62200] [PATCH v2] " conses
  0 siblings, 2 replies; 4+ messages in thread
From: conses @ 2023-03-15 12:19 UTC (permalink / raw)
  To: 62200; +Cc: contact

* gnu/packages/emacs-xyz.scm (emacs-nyxt): New variable.
---
 gnu/packages/emacs-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 3c067fe16c..fdd2202b3d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -27498,6 +27498,27 @@ (define-public emacs-nix-mode
 comments.")
     (license license:lgpl2.1+)))
 
+(define-public emacs-nyxt
+  (package
+    (name "emacs-nyxt")
+    (version "0.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.sr.ht/~conses/nyxt.el")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hgb10pk5m3v2gsl4h6i821nyzksss0rk4hhjnfb7nm98lalzbl6"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-sly))
+    (home-page "https://git.sr.ht/~conses/nyxt.el")
+    (synopsis "Interact with Nyxt from Emacs.")
+    (description "This package consists of custom logic to interact with
+Nyxt from Emacs.")
+    (license license:gpl3+)))
+
 (define-public emacs-libmpdel
   (package
     (name "emacs-libmpdel")
-- 
2.39.1



-- 
Best regards,
conses




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#62200] [PATCH] gnu: Add emacs-nyxt.
  2023-03-15 12:19 [bug#62200] [PATCH] gnu: Add emacs-nyxt conses
@ 2023-03-21  9:04 ` Nicolas Goaziou
  2023-03-21 11:17 ` [bug#62200] [PATCH v2] " conses
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2023-03-21  9:04 UTC (permalink / raw)
  To: conses; +Cc: 62200

Hello,

conses <contact@conses.eu> writes:

> * gnu/packages/emacs-xyz.scm (emacs-nyxt): New variable.

Thank you.

> +    (synopsis "Interact with Nyxt from Emacs.")
> +    (description "This package consists of custom logic to interact with
> +Nyxt from Emacs.")

Should Nyxt be an input? In this case, you need to set `nyxt-path'
variable accordingly.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#62200] [PATCH v2] gnu: Add emacs-nyxt.
  2023-03-15 12:19 [bug#62200] [PATCH] gnu: Add emacs-nyxt conses
  2023-03-21  9:04 ` Nicolas Goaziou
@ 2023-03-21 11:17 ` conses
  2023-03-24  9:17   ` bug#62200: " Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: conses @ 2023-03-21 11:17 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: contact, 62200

* gnu/packages/emacs-xyz.scm (emacs-nyxt): New variable.
---
* Add nyxt as input.
* Fix nyxt-path executable.
 gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b1f72ee009..2e70baf5a0 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -256,6 +256,7 @@ (define-module (gnu packages emacs-xyz)
   #:use-module (gnu packages erlang)
   #:use-module (gnu packages statistics)
   #:use-module (gnu packages libcanberra)
+  #:use-module (gnu packages web-browsers)
   #:use-module (gnu packages wget)
   #:use-module (guix utils)
   #:use-module (srfi srfi-1)
@@ -27628,6 +27629,36 @@ (define-public emacs-nix-mode
 comments.")
     (license license:lgpl2.1+)))
 
+(define-public emacs-nyxt
+  (package
+    (name "emacs-nyxt")
+    (version "0.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.sr.ht/~conses/nyxt.el")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hgb10pk5m3v2gsl4h6i821nyzksss0rk4hhjnfb7nm98lalzbl6"))))
+    (build-system emacs-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'patch-file-name
+                     (lambda* (#:key inputs #:allow-other-keys)
+                       (emacs-substitute-variables "nyxt.el"
+                         ("nyxt-path"
+                          (search-input-file inputs "/bin/nyxt"))))))))
+    (inputs (list nyxt))
+    (propagated-inputs (list emacs-sly))
+    (home-page "https://git.sr.ht/~conses/nyxt.el")
+    (synopsis "Interact with Nyxt from Emacs")
+    (description "This package consists of custom logic to interact with
+Nyxt from Emacs.")
+    (license license:gpl3+)))
+
 (define-public emacs-libmpdel
   (package
     (name "emacs-libmpdel")
-- 
2.39.1



-- 
Best regards,
conses




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#62200: [PATCH v2] gnu: Add emacs-nyxt.
  2023-03-21 11:17 ` [bug#62200] [PATCH v2] " conses
@ 2023-03-24  9:17   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2023-03-24  9:17 UTC (permalink / raw)
  To: conses; +Cc: 62200-done

Hello,

conses <contact@conses.eu> writes:

> * gnu/packages/emacs-xyz.scm (emacs-nyxt): New variable.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-24 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 12:19 [bug#62200] [PATCH] gnu: Add emacs-nyxt conses
2023-03-21  9:04 ` Nicolas Goaziou
2023-03-21 11:17 ` [bug#62200] [PATCH v2] " conses
2023-03-24  9:17   ` bug#62200: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).