unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49633] [PATCH 0/3] gnu: Add emacs-jupyter.
@ 2021-07-19  3:50 Vinicius Monego
  2021-07-19  3:51 ` [bug#49633] [PATCH 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Vinicius Monego @ 2021-07-19  3:50 UTC (permalink / raw)
  To: 49633; +Cc: Vinicius Monego

Vinicius Monego (3):
  gnu: zeromq: Enable DRAFTs.
  gnu: Add emacs-zmq.
  gnu: Add emacs-jupyter.

 gnu/packages/emacs-xyz.scm  | 74 +++++++++++++++++++++++++++++++++++++
 gnu/packages/networking.scm |  4 +-
 2 files changed, 77 insertions(+), 1 deletion(-)

-- 
2.30.2





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

* [bug#49633] [PATCH 1/3] gnu: zeromq: Enable DRAFTs.
  2021-07-19  3:50 [bug#49633] [PATCH 0/3] gnu: Add emacs-jupyter Vinicius Monego
@ 2021-07-19  3:51 ` Vinicius Monego
  2021-07-19  3:51   ` [bug#49633] [PATCH 2/3] gnu: Add emacs-zmq Vinicius Monego
  2021-07-19  3:51   ` [bug#49633] [PATCH 3/3] gnu: Add emacs-jupyter Vinicius Monego
  2021-07-19 15:33 ` [bug#49633] [PATCH v2 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
  2021-07-19 17:03 ` bug#49633: [PATCH 0/3] " Ludovic Courtès
  2 siblings, 2 replies; 8+ messages in thread
From: Vinicius Monego @ 2021-07-19  3:51 UTC (permalink / raw)
  To: 49633; +Cc: Vinicius Monego

* gnu/packages/networking.scm (zeromq)[arguments]<#:configure-flags>: Pass
--enable-drafts.
---
 gnu/packages/networking.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 19b58501e9..a3016ccb59 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -43,6 +43,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2021 Hartmut Goebel <h.goebel@crazy-compilers.com>
 ;;; Copyright © 2021 Justin Veilleux <terramorpha@cock.li>
+;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1029,7 +1030,8 @@ transparently check connection attempts against an access control list.")
        (sha256
         (base32 "1rf3jmi36ms8jh2g5cvi253h43l6xdfq0r7mvp95va7mi4d014y5"))))
     (build-system gnu-build-system)
-    (arguments '(#:configure-flags '("--disable-static")))
+    (arguments '(#:configure-flags '("--disable-static"
+                                     "--enable-drafts")))
     (home-page "https://zeromq.org")
     (synopsis "Library for message-based applications")
     (description
-- 
2.30.2





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

* [bug#49633] [PATCH 2/3] gnu: Add emacs-zmq.
  2021-07-19  3:51 ` [bug#49633] [PATCH 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
@ 2021-07-19  3:51   ` Vinicius Monego
  2021-07-19  3:51   ` [bug#49633] [PATCH 3/3] gnu: Add emacs-jupyter Vinicius Monego
  1 sibling, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2021-07-19  3:51 UTC (permalink / raw)
  To: 49633; +Cc: Vinicius Monego

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 037e7b71c2..e7fb0df5da 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -155,6 +155,7 @@
   #:use-module (gnu packages ibus)
   #:use-module (gnu packages java)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages networking)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages telephony)
@@ -5989,6 +5990,51 @@ view the build status of those servers' build jobs, and possibly to trigger
 build jobs.")
     (license license:gpl3+)))
 
+(define-public emacs-zmq
+  (package
+    (name "emacs-zmq")
+    (version "0.10.10")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nnicandro/emacs-zmq")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0ngxm5mm0kqgvn8977ryrngamx0khzlw86d8vz5s0jhm2kgwnqp8"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:tests? #f ; no tests
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'configure
+           (lambda _
+             (invoke "make" "src/configure")
+             (substitute* "src/configure"
+               (("/bin/sh") (which "sh"))
+               (("/usr/bin/file") (which "file")))
+             (invoke "make")))
+         (add-after 'install 'install-shared-object
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (site-lisp (string-append out "/share/emacs/site-lisp"))
+                    (libdir (string-append site-lisp "/zmq-0.10.10")))
+               (copy-file "emacs-zmq.so"
+                          (string-append libdir "/emacs-zmq.so"))))))))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("zeromq" ,zeromq)))
+    (home-page "https://github.com/nnicandro/emacs-zmq")
+    (synopsis "Emacs bindings to ØMQ")
+    (description "This package provides Emacs bindings to ØMQ.")
+    (license (list license:gpl2+     ;zmq.el
+                   license:gpl3+)))) ;src/emacs-module.h
+
 (define-public emacs-tup-mode
   (package
     (name "emacs-tup-mode")
-- 
2.30.2





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

* [bug#49633] [PATCH 3/3] gnu: Add emacs-jupyter.
  2021-07-19  3:51 ` [bug#49633] [PATCH 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
  2021-07-19  3:51   ` [bug#49633] [PATCH 2/3] gnu: Add emacs-zmq Vinicius Monego
@ 2021-07-19  3:51   ` Vinicius Monego
  1 sibling, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2021-07-19  3:51 UTC (permalink / raw)
  To: 49633; +Cc: Vinicius Monego

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e7fb0df5da..4358c8f5a4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16026,6 +16026,34 @@ Features:
 the pipeline, featuring the support for running @code{emacsclient}.")
     (license license:gpl3+)))
 
+(define-public emacs-jupyter
+  (package
+    (name "emacs-jupyter")
+    (version "0.8.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nnicandro/emacs-jupyter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1sr007wsl2y6wqpzkmv3inbpwhvgdcb2nmqzgfg7w1awapi2r13p"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-company" ,emacs-company) ;optional
+       ("emacs-markdown-mode" ,emacs-markdown-mode) ;optional
+       ("emacs-simple-httpd" ,emacs-simple-httpd)
+       ("emacs-websocket" ,emacs-websocket)
+       ("emacs-zmq" ,emacs-zmq)))
+    (home-page "https://github.com/nnicandro/emacs-jupyter")
+    (synopsis "Emacs interface to communicate with Jupyter kernels")
+    (description "This package provides an Emacs interface to communicate with
+Jupyter kernels.  It provides REPL and @code{org-mode} source code block
+frontends to Jupyter kernels and kernel interactions integrated with Emacs'
+built-in features.")
+    (license license:gpl3+)))
+
 (define-public emacs-hcl-mode
   (package
     (name "emacs-hcl-mode")
-- 
2.30.2





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

* [bug#49633] [PATCH v2 1/3] gnu: zeromq: Enable DRAFTs.
  2021-07-19  3:50 [bug#49633] [PATCH 0/3] gnu: Add emacs-jupyter Vinicius Monego
  2021-07-19  3:51 ` [bug#49633] [PATCH 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
@ 2021-07-19 15:33 ` Vinicius Monego
  2021-07-19 15:33   ` [bug#49633] [PATCH v2 2/3] gnu: Add emacs-zmq Vinicius Monego
  2021-07-19 15:33   ` [bug#49633] [PATCH v2 3/3] gnu: Add emacs-jupyter Vinicius Monego
  2021-07-19 17:03 ` bug#49633: [PATCH 0/3] " Ludovic Courtès
  2 siblings, 2 replies; 8+ messages in thread
From: Vinicius Monego @ 2021-07-19 15:33 UTC (permalink / raw)
  To: 49633; +Cc: Vinicius Monego

* gnu/packages/networking.scm (zeromq)[arguments]<#:configure-flags>: Pass
--enable-drafts.
---
No changes.

 gnu/packages/networking.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 19b58501e9..a3016ccb59 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -43,6 +43,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2021 Hartmut Goebel <h.goebel@crazy-compilers.com>
 ;;; Copyright © 2021 Justin Veilleux <terramorpha@cock.li>
+;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1029,7 +1030,8 @@ transparently check connection attempts against an access control list.")
        (sha256
         (base32 "1rf3jmi36ms8jh2g5cvi253h43l6xdfq0r7mvp95va7mi4d014y5"))))
     (build-system gnu-build-system)
-    (arguments '(#:configure-flags '("--disable-static")))
+    (arguments '(#:configure-flags '("--disable-static"
+                                     "--enable-drafts")))
     (home-page "https://zeromq.org")
     (synopsis "Library for message-based applications")
     (description
-- 
2.30.2





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

* [bug#49633] [PATCH v2 2/3] gnu: Add emacs-zmq.
  2021-07-19 15:33 ` [bug#49633] [PATCH v2 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
@ 2021-07-19 15:33   ` Vinicius Monego
  2021-07-19 15:33   ` [bug#49633] [PATCH v2 3/3] gnu: Add emacs-jupyter Vinicius Monego
  1 sibling, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2021-07-19 15:33 UTC (permalink / raw)
  To: 49633; +Cc: Vinicius Monego

* gnu/packages/emacs-xyz.scm (emacs-zmq): New variable.
---
('install-shared-object): Removed unused inputs #:key and replaced "0.10.10" with ,version in libdir.

 gnu/packages/emacs-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6f36bb4ba3..d3870ffa52 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -155,6 +155,7 @@
   #:use-module (gnu packages ibus)
   #:use-module (gnu packages java)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages networking)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages telephony)
@@ -5989,6 +5990,51 @@ view the build status of those servers' build jobs, and possibly to trigger
 build jobs.")
     (license license:gpl3+)))
 
+(define-public emacs-zmq
+  (package
+    (name "emacs-zmq")
+    (version "0.10.10")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nnicandro/emacs-zmq")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0ngxm5mm0kqgvn8977ryrngamx0khzlw86d8vz5s0jhm2kgwnqp8"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:tests? #f ; no tests
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'configure
+           (lambda _
+             (invoke "make" "src/configure")
+             (substitute* "src/configure"
+               (("/bin/sh") (which "sh"))
+               (("/usr/bin/file") (which "file")))
+             (invoke "make")))
+         (add-after 'install 'install-shared-object
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (site-lisp (string-append out "/share/emacs/site-lisp"))
+                    (libdir (string-append site-lisp "/zmq-" ,version)))
+               (copy-file "emacs-zmq.so"
+                          (string-append libdir "/emacs-zmq.so"))))))))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("zeromq" ,zeromq)))
+    (home-page "https://github.com/nnicandro/emacs-zmq")
+    (synopsis "Emacs bindings to ØMQ")
+    (description "This package provides Emacs bindings to ØMQ.")
+    (license (list license:gpl2+     ;zmq.el
+                   license:gpl3+)))) ;src/emacs-module.h
+
 (define-public emacs-tup-mode
   (package
     (name "emacs-tup-mode")
-- 
2.30.2





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

* [bug#49633] [PATCH v2 3/3] gnu: Add emacs-jupyter.
  2021-07-19 15:33 ` [bug#49633] [PATCH v2 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
  2021-07-19 15:33   ` [bug#49633] [PATCH v2 2/3] gnu: Add emacs-zmq Vinicius Monego
@ 2021-07-19 15:33   ` Vinicius Monego
  1 sibling, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2021-07-19 15:33 UTC (permalink / raw)
  To: 49633; +Cc: Vinicius Monego

* gnu/packages/emacs-xyz.scm (emacs-jupyter): New variable.
---
No changes.

 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d3870ffa52..da27b5131c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16026,6 +16026,34 @@ Features:
 the pipeline, featuring the support for running @code{emacsclient}.")
     (license license:gpl3+)))
 
+(define-public emacs-jupyter
+  (package
+    (name "emacs-jupyter")
+    (version "0.8.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nnicandro/emacs-jupyter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1sr007wsl2y6wqpzkmv3inbpwhvgdcb2nmqzgfg7w1awapi2r13p"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-company" ,emacs-company) ;optional
+       ("emacs-markdown-mode" ,emacs-markdown-mode) ;optional
+       ("emacs-simple-httpd" ,emacs-simple-httpd)
+       ("emacs-websocket" ,emacs-websocket)
+       ("emacs-zmq" ,emacs-zmq)))
+    (home-page "https://github.com/nnicandro/emacs-jupyter")
+    (synopsis "Emacs interface to communicate with Jupyter kernels")
+    (description "This package provides an Emacs interface to communicate with
+Jupyter kernels.  It provides REPL and @code{org-mode} source code block
+frontends to Jupyter kernels and kernel interactions integrated with Emacs'
+built-in features.")
+    (license license:gpl3+)))
+
 (define-public emacs-hcl-mode
   (package
     (name "emacs-hcl-mode")
-- 
2.30.2





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

* bug#49633: [PATCH 0/3] gnu: Add emacs-jupyter.
  2021-07-19  3:50 [bug#49633] [PATCH 0/3] gnu: Add emacs-jupyter Vinicius Monego
  2021-07-19  3:51 ` [bug#49633] [PATCH 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
  2021-07-19 15:33 ` [bug#49633] [PATCH v2 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
@ 2021-07-19 17:03 ` Ludovic Courtès
  2 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2021-07-19 17:03 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 49633-done

Hi,

Vinicius Monego <monego@posteo.net> skribis:

>   gnu: zeromq: Enable DRAFTs.
>   gnu: Add emacs-zmq.
>   gnu: Add emacs-jupyter.

Applied, thanks!

Ludo’.




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

end of thread, other threads:[~2021-07-19 17:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19  3:50 [bug#49633] [PATCH 0/3] gnu: Add emacs-jupyter Vinicius Monego
2021-07-19  3:51 ` [bug#49633] [PATCH 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
2021-07-19  3:51   ` [bug#49633] [PATCH 2/3] gnu: Add emacs-zmq Vinicius Monego
2021-07-19  3:51   ` [bug#49633] [PATCH 3/3] gnu: Add emacs-jupyter Vinicius Monego
2021-07-19 15:33 ` [bug#49633] [PATCH v2 1/3] gnu: zeromq: Enable DRAFTs Vinicius Monego
2021-07-19 15:33   ` [bug#49633] [PATCH v2 2/3] gnu: Add emacs-zmq Vinicius Monego
2021-07-19 15:33   ` [bug#49633] [PATCH v2 3/3] gnu: Add emacs-jupyter Vinicius Monego
2021-07-19 17:03 ` bug#49633: [PATCH 0/3] " Ludovic Courtès

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).