unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Add tintin.
@ 2016-08-08 20:00 ng0
  2016-08-08 20:12 ` ng0
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: ng0 @ 2016-08-08 20:00 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 222 bytes --]

This patch adds tintin. Functionality was tried with
just connecting to the psyced.org chatserver, connection
successful, interaction not possible due to unsupported or
old tls on client side. I have to investigate that.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-tintin.patch --]
[-- Type: text/x-patch, Size: 2437 bytes --]

From f132b8022ec0068d5b96a85a4038a8279d9a3596 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Mon, 8 Aug 2016 19:54:50 +0000
Subject: [PATCH] gnu: Add tintin.

* gnu/packages/games.scm (tintin): New variable.
---
 gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index e467dbe..25445ab 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -99,6 +99,8 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages xdisorg)
+  #:use-module (gnu packages tls)
+  #:use-module (gnu packages pcre)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system haskell)
   #:use-module (guix build-system cmake)
@@ -2731,3 +2733,39 @@ in a style similar to the original Super Mario games covered under
 the GNU GPL.")
    (home-page "https://supertuxproject.org/")
    (license license:gpl3+)))
+
+(define-public tintin
+  (package
+    (name "tintin")
+    (version "2.01.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://sourceforge.net/projects/" name
+                                  "/files" "/TinTin++ Source Code/"
+                                  version "/" name "-" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
+    (inputs
+     `(("gnutls" ,gnutls)
+       ("readline" ,readline)
+       ("zlib" ,zlib)
+       ("pcre" ,pcre)))
+    (arguments
+     '(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         ;; The source is in tt/src.
+         (add-before 'configure 'chdir-to-tt-src
+           (lambda _
+             (chdir "src"))))))
+    (build-system gnu-build-system)
+    (home-page "http://tintin.sourceforge.net/")
+    (synopsis "MUD client")
+    (description
+     "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
+MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
+as well as those required to login via telnet on Linux / Mac OS X servers, and an
+auto mapper with a VT100 map display.")
+    (license license:gpl2+)))
-- 
2.9.2


[-- Attachment #1.3: Type: text/plain, Size: 134 bytes --]


-- 
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

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

* Re: [PATCH] Add tintin.
  2016-08-08 20:00 [PATCH] Add tintin ng0
@ 2016-08-08 20:12 ` ng0
  2016-08-08 21:13 ` ng0
  2016-08-08 21:21 ` ng0
  2 siblings, 0 replies; 23+ messages in thread
From: ng0 @ 2016-08-08 20:12 UTC (permalink / raw)
  To: guix-devel

ng0 <ng0@we.make.ritual.n0.is> writes:

> This patch adds tintin. Functionality was tried with
> just connecting to the psyced.org chatserver, connection
> successful, interaction not possible due to unsupported or
> old tls on client side. I have to investigate that.

I know that psyced.org has very restrictive settings, so tintin with
default settings might not fullfill them.
Try connecting to nemesis.de port 23 with it, choose name "guest" and
you'll see that it works as intended.

> From f132b8022ec0068d5b96a85a4038a8279d9a3596 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Mon, 8 Aug 2016 19:54:50 +0000
> Subject: [PATCH] gnu: Add tintin.
>
> * gnu/packages/games.scm (tintin): New variable.
> ---
>  gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index e467dbe..25445ab 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -99,6 +99,8 @@
>    #:use-module (gnu packages xml)
>    #:use-module (gnu packages tcl)
>    #:use-module (gnu packages xdisorg)
> +  #:use-module (gnu packages tls)
> +  #:use-module (gnu packages pcre)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system haskell)
>    #:use-module (guix build-system cmake)
> @@ -2731,3 +2733,39 @@ in a style similar to the original Super Mario games covered under
>  the GNU GPL.")
>     (home-page "https://supertuxproject.org/")
>     (license license:gpl3+)))
> +
> +(define-public tintin
> +  (package
> +    (name "tintin")
> +    (version "2.01.1")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://sourceforge.net/projects/" name
> +                                  "/files" "/TinTin++ Source Code/"
> +                                  version "/" name "-" version ".tar.gz"))
> +              (file-name (string-append name "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
> +    (inputs
> +     `(("gnutls" ,gnutls)
> +       ("readline" ,readline)
> +       ("zlib" ,zlib)
> +       ("pcre" ,pcre)))
> +    (arguments
> +     '(#:tests? #f
> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; The source is in tt/src.
> +         (add-before 'configure 'chdir-to-tt-src
> +           (lambda _
> +             (chdir "src"))))))
> +    (build-system gnu-build-system)
> +    (home-page "http://tintin.sourceforge.net/")
> +    (synopsis "MUD client")
> +    (description
> +     "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
> +MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
> +as well as those required to login via telnet on Linux / Mac OS X servers, and an
> +auto mapper with a VT100 map display.")
> +    (license license:gpl2+)))
> -- 
> 2.9.2
>
>
> -- 
> ♥Ⓐ  ng0
> Current Keys: https://we.make.ritual.n0.is/ng0.txt
> For non-prism friendly talk find me on http://www.psyced.org

-- 
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] Add tintin.
  2016-08-08 20:00 [PATCH] Add tintin ng0
  2016-08-08 20:12 ` ng0
@ 2016-08-08 21:13 ` ng0
  2016-08-08 21:21 ` ng0
  2 siblings, 0 replies; 23+ messages in thread
From: ng0 @ 2016-08-08 21:13 UTC (permalink / raw)
  To: guix-devel

Damn. I just realized this is called TinTin++ and that the "++" is part
of the name, as there were other tintin*.

Updated patch coming soon.
ng0 <ng0@we.make.ritual.n0.is> writes:

> This patch adds tintin. Functionality was tried with
> just connecting to the psyced.org chatserver, connection
> successful, interaction not possible due to unsupported or
> old tls on client side. I have to investigate that.
>
> From f132b8022ec0068d5b96a85a4038a8279d9a3596 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Mon, 8 Aug 2016 19:54:50 +0000
> Subject: [PATCH] gnu: Add tintin.
>
> * gnu/packages/games.scm (tintin): New variable.
> ---
>  gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index e467dbe..25445ab 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -99,6 +99,8 @@
>    #:use-module (gnu packages xml)
>    #:use-module (gnu packages tcl)
>    #:use-module (gnu packages xdisorg)
> +  #:use-module (gnu packages tls)
> +  #:use-module (gnu packages pcre)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system haskell)
>    #:use-module (guix build-system cmake)
> @@ -2731,3 +2733,39 @@ in a style similar to the original Super Mario games covered under
>  the GNU GPL.")
>     (home-page "https://supertuxproject.org/")
>     (license license:gpl3+)))
> +
> +(define-public tintin
> +  (package
> +    (name "tintin")
> +    (version "2.01.1")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://sourceforge.net/projects/" name
> +                                  "/files" "/TinTin++ Source Code/"
> +                                  version "/" name "-" version ".tar.gz"))
> +              (file-name (string-append name "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
> +    (inputs
> +     `(("gnutls" ,gnutls)
> +       ("readline" ,readline)
> +       ("zlib" ,zlib)
> +       ("pcre" ,pcre)))
> +    (arguments
> +     '(#:tests? #f
> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; The source is in tt/src.
> +         (add-before 'configure 'chdir-to-tt-src
> +           (lambda _
> +             (chdir "src"))))))
> +    (build-system gnu-build-system)
> +    (home-page "http://tintin.sourceforge.net/")
> +    (synopsis "MUD client")
> +    (description
> +     "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
> +MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
> +as well as those required to login via telnet on Linux / Mac OS X servers, and an
> +auto mapper with a VT100 map display.")
> +    (license license:gpl2+)))
> -- 
> 2.9.2
>
>
> -- 
> ♥Ⓐ  ng0
> Current Keys: https://we.make.ritual.n0.is/ng0.txt
> For non-prism friendly talk find me on http://www.psyced.org

-- 
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] Add tintin.
  2016-08-08 20:00 [PATCH] Add tintin ng0
  2016-08-08 20:12 ` ng0
  2016-08-08 21:13 ` ng0
@ 2016-08-08 21:21 ` ng0
  2016-08-19  9:01   ` ng0
  2016-08-19 19:32   ` [PATCH] Add tintin Leo Famulari
  2 siblings, 2 replies; 23+ messages in thread
From: ng0 @ 2016-08-08 21:21 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 16 bytes --]

Updated patch.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-tintin.patch --]
[-- Type: text/x-patch, Size: 2456 bytes --]

From 27b7d8ea899cf54e62ef42e5993c0a883985799f Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Mon, 8 Aug 2016 19:54:50 +0000
Subject: [PATCH] gnu: Add tintin.

* gnu/packages/games.scm (tintin): New variable.
---
 gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index e467dbe..6d0af86 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -99,6 +99,8 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages xdisorg)
+  #:use-module (gnu packages tls)
+  #:use-module (gnu packages pcre)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system haskell)
   #:use-module (guix build-system cmake)
@@ -2731,3 +2733,39 @@ in a style similar to the original Super Mario games covered under
 the GNU GPL.")
    (home-page "https://supertuxproject.org/")
    (license license:gpl3+)))
+
+(define-public tintin++
+  (package
+    (name "tintin++")
+    (version "2.01.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://sourceforge.net/projects/tintin"
+                                  "/files/TinTin++ Source Code/" version
+                                  "/tintin" "-" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
+    (inputs
+     `(("gnutls" ,gnutls)
+       ("readline" ,readline)
+       ("zlib" ,zlib)
+       ("pcre" ,pcre)))
+    (arguments
+     '(#:tests? #f ; no test suite
+       #:phases
+       (modify-phases %standard-phases
+         ;; The source is in tt/src.
+         (add-before 'configure 'chdir-to-tt-src
+           (lambda _
+             (chdir "src"))))))
+    (build-system gnu-build-system)
+    (home-page "http://tintin.sourceforge.net/")
+    (synopsis "MUD client")
+    (description
+     "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
+MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
+as well as those required to login via telnet on Linux / Mac OS X servers, and an
+auto mapper with a VT100 map display.")
+    (license license:gpl2+)))
-- 
2.9.2


[-- Attachment #1.3: Type: text/plain, Size: 134 bytes --]


-- 
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

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

* Re: [PATCH] Add tintin.
  2016-08-08 21:21 ` ng0
@ 2016-08-19  9:01   ` ng0
  2016-08-19  9:21     ` David Craven
  2016-08-19 19:32   ` [PATCH] Add tintin Leo Famulari
  1 sibling, 1 reply; 23+ messages in thread
From: ng0 @ 2016-08-19  9:01 UTC (permalink / raw)
  To: guix-devel

Hi,

can someone please review this or tell me if it's on their todo/monitor
list?

Thanks.
ng0 <ng0@we.make.ritual.n0.is> writes:

> [ Unknown signature status ]
> Updated patch.
>
> From 27b7d8ea899cf54e62ef42e5993c0a883985799f Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Mon, 8 Aug 2016 19:54:50 +0000
> Subject: [PATCH] gnu: Add tintin.
>
> * gnu/packages/games.scm (tintin): New variable.
> ---
>  gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index e467dbe..6d0af86 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -99,6 +99,8 @@
>    #:use-module (gnu packages xml)
>    #:use-module (gnu packages tcl)
>    #:use-module (gnu packages xdisorg)
> +  #:use-module (gnu packages tls)
> +  #:use-module (gnu packages pcre)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system haskell)
>    #:use-module (guix build-system cmake)
> @@ -2731,3 +2733,39 @@ in a style similar to the original Super Mario games covered under
>  the GNU GPL.")
>     (home-page "https://supertuxproject.org/")
>     (license license:gpl3+)))
> +
> +(define-public tintin++
> +  (package
> +    (name "tintin++")
> +    (version "2.01.1")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://sourceforge.net/projects/tintin"
> +                                  "/files/TinTin++ Source Code/" version
> +                                  "/tintin" "-" version ".tar.gz"))
> +              (file-name (string-append name "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
> +    (inputs
> +     `(("gnutls" ,gnutls)
> +       ("readline" ,readline)
> +       ("zlib" ,zlib)
> +       ("pcre" ,pcre)))
> +    (arguments
> +     '(#:tests? #f ; no test suite
> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; The source is in tt/src.
> +         (add-before 'configure 'chdir-to-tt-src
> +           (lambda _
> +             (chdir "src"))))))
> +    (build-system gnu-build-system)
> +    (home-page "http://tintin.sourceforge.net/")
> +    (synopsis "MUD client")
> +    (description
> +     "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
> +MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
> +as well as those required to login via telnet on Linux / Mac OS X servers, and an
> +auto mapper with a VT100 map display.")
> +    (license license:gpl2+)))
> -- 
> 2.9.2
>
>
> -- 
> ♥Ⓐ  ng0
> Current Keys: https://we.make.ritual.n0.is/ng0.txt
> For non-prism friendly talk find me on http://www.psyced.org

-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] Add tintin.
  2016-08-19  9:01   ` ng0
@ 2016-08-19  9:21     ` David Craven
  2016-08-19  9:38       ` ng0
  0 siblings, 1 reply; 23+ messages in thread
From: David Craven @ 2016-08-19  9:21 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

I can add it to my todo list.

How do I fetch the patches from the mailing list? This is only one,
but if there are more than one copying the emails into files seems
cumbersome...

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

* Re: [PATCH] Add tintin.
  2016-08-19  9:21     ` David Craven
@ 2016-08-19  9:38       ` ng0
  2016-08-19  9:48         ` David Craven
  0 siblings, 1 reply; 23+ messages in thread
From: ng0 @ 2016-08-19  9:38 UTC (permalink / raw)
  To: David Craven; +Cc: guix-devel

David Craven <david@craven.ch> writes:

> I can add it to my todo list.
>
> How do I fetch the patches from the mailing list? This is only one,
> but if there are more than one copying the emails into files seems
> cumbersome...

I usually attach the patches as files, in notmuch emacs they are saved
by pressing
. s
when in the displayed attached files part. Or what exactly do you mean?
-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] Add tintin.
  2016-08-19  9:38       ` ng0
@ 2016-08-19  9:48         ` David Craven
  2016-08-19 10:30           ` ng0
                             ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: David Craven @ 2016-08-19  9:48 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

> I usually attach the patches as files, in notmuch emacs they are saved
> by pressing
> . s
> when in the displayed attached files part. Or what exactly do you mean?

Yep that's what I mean. I'm currently doing this:
Look at the patch in gmail
touch 0.patch
copy paste the email into 0.patch
git am 0.patch
copy paste again because I didn't copy the right part
git am 0.patch

and was wondering if there was a better way... I've read good things
about emacs, but I still haven't taken the learning curve. I gave it a
try a couple of weeks ago but gave up after a couple of hours =P

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

* Re: [PATCH] Add tintin.
  2016-08-19  9:48         ` David Craven
@ 2016-08-19 10:30           ` ng0
  2016-08-19 11:25             ` David Craven
  2016-08-19 11:50           ` Marius Bakke
                             ` (2 subsequent siblings)
  3 siblings, 1 reply; 23+ messages in thread
From: ng0 @ 2016-08-19 10:30 UTC (permalink / raw)
  To: David Craven; +Cc: guix-devel

David Craven <david@craven.ch> writes:

>> I usually attach the patches as files, in notmuch emacs they are saved
>> by pressing
>> . s
>> when in the displayed attached files part. Or what exactly do you mean?
>
> Yep that's what I mean. I'm currently doing this:
> Look at the patch in gmail
> touch 0.patch
> copy paste the email into 0.patch
> git am 0.patch
> copy paste again because I didn't copy the right part
> git am 0.patch
>
> and was wondering if there was a better way... I've read good things
> about emacs, but I still haven't taken the learning curve. I gave it a
> try a couple of weeks ago but gave up after a couple of hours =P

The patches should be files, which can also be downloaded at the archive
of guix-devel if mailman does not do something weird with the messages.

I found that copy+paste occasionally changed intendation and other
things, so I use an email client. Well not an email client, more a
reader of a database which manages emails.

There's a vim interface too, if you prefer that.

I just looked at
http://lists.gnu.org/archive/html/guix-devel/2016-08/msg00605.html and
mailman does indeed move it into the message, no files to download.
I don't know.. You should get the files when you use an email client.
If not, I have to change the mime type I use for the patches I
append. Currently I use the default of notmuch/emacs.
-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] Add tintin.
  2016-08-19 10:30           ` ng0
@ 2016-08-19 11:25             ` David Craven
  0 siblings, 0 replies; 23+ messages in thread
From: David Craven @ 2016-08-19 11:25 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

Still working on getting an acceptable workflow setup. The barrier to
becoming a patch reviewer is IMO high...

> There's a vim interface too, if you prefer that.

I don't use many gui applications but atom and chromium are exceptions... =)

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

* Re: [PATCH] Add tintin.
  2016-08-19  9:48         ` David Craven
  2016-08-19 10:30           ` ng0
@ 2016-08-19 11:50           ` Marius Bakke
  2016-08-19 12:38             ` David Craven
  2016-08-19 19:15           ` Leo Famulari
  2016-08-20 16:38           ` Alex Vong
  3 siblings, 1 reply; 23+ messages in thread
From: Marius Bakke @ 2016-08-19 11:50 UTC (permalink / raw)
  To: David Craven, ng0; +Cc: guix-devel

David Craven <david@craven.ch> writes:

>> I usually attach the patches as files, in notmuch emacs they are saved
>> by pressing
>> . s
>> when in the displayed attached files part. Or what exactly do you mean?
>
> Yep that's what I mean. I'm currently doing this:
> Look at the patch in gmail
> touch 0.patch
> copy paste the email into 0.patch
> git am 0.patch
> copy paste again because I didn't copy the right part
> git am 0.patch
>
> and was wondering if there was a better way... I've read good things
> about emacs, but I still haven't taken the learning curve. I gave it a
> try a couple of weeks ago but gave up after a couple of hours =P

Another emacs/notmuch user checking in. I was in the same boat as you
until trying out spacemacs ~two years ago:

https://github.com/syl20bnr/spacemacs

Now I have the full power of emacs, without carpal-tunnel inducing
keybindings, and with a really sane and flexible configuration system.
They do an amazing job at creating mnemonic key bindings for emacs
modules, e.g. to make a (ma)git commit the combo is <space>-g-c.

Give it a go, if you haven't already :)

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

* Re: [PATCH] Add tintin.
  2016-08-19 11:50           ` Marius Bakke
@ 2016-08-19 12:38             ` David Craven
  2016-08-19 17:59               ` David Craven
  0 siblings, 1 reply; 23+ messages in thread
From: David Craven @ 2016-08-19 12:38 UTC (permalink / raw)
  To: Marius Bakke; +Cc: guix-devel

> Another emacs/notmuch user checking in. I was in the same boat as you
> until trying out spacemacs ~two years ago:
>
> https://github.com/syl20bnr/spacemacs
>
> Now I have the full power of emacs, without carpal-tunnel inducing
> keybindings, and with a really sane and flexible configuration system.
> They do an amazing job at creating mnemonic key bindings for emacs
> modules, e.g. to make a (ma)git commit the combo is <space>-g-c.
>
> Give it a go, if you haven't already :)

Looks promising, thank you!

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

* Re: [PATCH] Add tintin.
  2016-08-19 12:38             ` David Craven
@ 2016-08-19 17:59               ` David Craven
  2016-08-19 18:46                 ` Marius Bakke
  0 siblings, 1 reply; 23+ messages in thread
From: David Craven @ 2016-08-19 17:59 UTC (permalink / raw)
  To: Marius Bakke; +Cc: guix-devel

> Another emacs/notmuch user checking in. I was in the same boat as you
> until trying out spacemacs ~two years ago:
>
> https://github.com/syl20bnr/spacemacs
>
> Give it a go, if you haven't already :)

@marius:
Did you get the guix plugin working? Does it need anything spacemacs
specific other than adding the snippet from the manual to .spacemacs?

(let ((dir "/path/to/your-guix-git-tree/emacs"))
  (add-to-list 'load-path dir)
  (setq guix-load-path dir))
(require 'guix-autoloads nil t)

Are you using a spacemacs layer for notmuch? There isn't an official
one available...

@ng0: sorry it's taking this long... =P

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

* Re: [PATCH] Add tintin.
  2016-08-19 17:59               ` David Craven
@ 2016-08-19 18:46                 ` Marius Bakke
  0 siblings, 0 replies; 23+ messages in thread
From: Marius Bakke @ 2016-08-19 18:46 UTC (permalink / raw)
  To: David Craven; +Cc: guix-devel

David Craven <david@craven.ch> writes:

>> Another emacs/notmuch user checking in. I was in the same boat as you
>> until trying out spacemacs ~two years ago:
>>
>> https://github.com/syl20bnr/spacemacs
>>
>> Give it a go, if you haven't already :)
>
> @marius:
> Did you get the guix plugin working? Does it need anything spacemacs
> specific other than adding the snippet from the manual to .spacemacs?
>
> (let ((dir "/path/to/your-guix-git-tree/emacs"))
>   (add-to-list 'load-path dir)
>   (setq guix-load-path dir))
> (require 'guix-autoloads nil t)

The guix plugin worked out of the box on GuixSD. I have not set it up on
my main workstation, as I mainly work from a terminal, and it did not
integrate well with Evil.

> Are you using a spacemacs layer for notmuch? There isn't an official
> one available...

Yes, I have a layer called "mail". Here is config.el, using two mail
accounts (this one and work). Don't ask what all the options mean...

--8<---------------cut here---------------start------------->8---
(setq notmuch-crypto-process-mime t
      notmuch-search-oldest-first nil
      notmuch-folders '(("inbox" . "tag:inbox")
                        ("work" . "tag:work")
                        ("guix" . "tag:guix")
                        ; ..add your most-used tags here..
                        ))

(setq mail-specify-envelope-from t
      message-sendmail-envelope-from 'header
      mail-envelope-from 'header
      ;; Tell notmuch where to place sent email based on sender.
      notmuch-fcc-dirs '(("m.bakke@warwick.ac.uk" . "work/Sent")
                        ("mbakke@fastmail.com" . "fastmail/Sent"))
      sendmail-program "/home/marius/.nix-profile/bin/msmtp"
      send-mail-function 'message-send-mail-with-sendmail
      message-send-mail-function 'message-send-mail-with-sendmail
      message-directory "~/Mail/drafts"
      message-kill-buffer-on-exit t)

;; Ask which signing key to use.
(setq mm-sign-option 'guided)
--8<---------------cut here---------------end--------------->8---

..and packages.el (not sure if all of this is required):

--8<---------------cut here---------------start------------->8---
(setq mail-packages
  '(notmuch
    peg
    nm))

(setq mail-excluded-packages '())

(defun mail/init-nm()
  (require 'nm))

(defun mail/init-nmaddr()
  (require 'nm-company))

(when (configuration-layer/layer-usedp 'auto-completion)

  ;; Hook company to notmuch
  (defun mail/post-init-company ()
    (spacemacs|add-company-hook notmuch))

  ;; Add the backend to the major-mode specific backend list
  (defun mail/init-nm-company ()
    (use-package nm-company
      :if (configuration-layer/package-usedp 'company)
      :defer t
      :init (push 'nm-company company-backends-notmuch))))
--8<---------------cut here---------------end--------------->8---

I also have this in keybindings.el, but not sure if that's required
either (company-mode has gotten a lot more integrated with spacemacs
since I configured this):

(local-set-key [tab] 'company-complete)

Hope this helps!
Marius

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

* Re: [PATCH] Add tintin.
  2016-08-19  9:48         ` David Craven
  2016-08-19 10:30           ` ng0
  2016-08-19 11:50           ` Marius Bakke
@ 2016-08-19 19:15           ` Leo Famulari
  2016-08-20 16:38           ` Alex Vong
  3 siblings, 0 replies; 23+ messages in thread
From: Leo Famulari @ 2016-08-19 19:15 UTC (permalink / raw)
  To: David Craven; +Cc: guix-devel

On Fri, Aug 19, 2016 at 11:48:51AM +0200, David Craven wrote:
> > I usually attach the patches as files, in notmuch emacs they are saved
> > by pressing
> > . s
> > when in the displayed attached files part. Or what exactly do you mean?
> 
> Yep that's what I mean. I'm currently doing this:
> Look at the patch in gmail
> touch 0.patch
> copy paste the email into 0.patch
> git am 0.patch
> copy paste again because I didn't copy the right part
> git am 0.patch

I was lucky to already be comfortable in Mutt when I started helping
with Guix. Mutt can run shell commands with the current message as
stdin, so I invoke that mode and do `cd ~/guix && git am` and everything
works, assuming the patch is okay.

It would be really painful if I had to use something in a web browser,
like gmail.

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

* Re: [PATCH] Add tintin.
  2016-08-08 21:21 ` ng0
  2016-08-19  9:01   ` ng0
@ 2016-08-19 19:32   ` Leo Famulari
  2016-08-19 20:40     ` ng0
  1 sibling, 1 reply; 23+ messages in thread
From: Leo Famulari @ 2016-08-19 19:32 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

On Mon, Aug 08, 2016 at 09:21:09PM +0000, ng0 wrote:
> Updated patch.
> 
> * gnu/packages/games.scm (tintin): New variable.

Thanks!

> +              (uri (string-append "https://sourceforge.net/projects/tintin"
> +                                  "/files/TinTin++ Source Code/" version
> +                                  "/tintin" "-" version ".tar.gz"))

This URL does not work for me. Maybe you already had the tarball in your
/gnu/store? Also, it should use our SourceForge mirrors.

> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; The source is in tt/src.
> +         (add-before 'configure 'chdir-to-tt-src
> +           (lambda _
> +             (chdir "src"))))))

I would call this phase 'chdir'.

> +    (home-page "http://tintin.sourceforge.net/")

HTTPS, if possible.

Otherwise, looks good so far!

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

* Re: [PATCH] Add tintin.
  2016-08-19 19:32   ` [PATCH] Add tintin Leo Famulari
@ 2016-08-19 20:40     ` ng0
  0 siblings, 0 replies; 23+ messages in thread
From: ng0 @ 2016-08-19 20:40 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Hi,

Leo Famulari <leo@famulari.name> writes:

> On Mon, Aug 08, 2016 at 09:21:09PM +0000, ng0 wrote:
>> Updated patch.
>> 
>> * gnu/packages/games.scm (tintin): New variable.
>
> Thanks!
>
>> +              (uri (string-append "https://sourceforge.net/projects/tintin"
>> +                                  "/files/TinTin++ Source Code/" version
>> +                                  "/tintin" "-" version ".tar.gz"))
>
> This URL does not work for me. Maybe you already had the tarball in your
> /gnu/store? Also, it should use our SourceForge mirrors.

The mirror://sourceforge uses /project/, while this uses /projects/.
Just /project/ failed for me, as did the mirrors.

>> +       #:phases
>> +       (modify-phases %standard-phases
>> +         ;; The source is in tt/src.
>> +         (add-before 'configure 'chdir-to-tt-src
>> +           (lambda _
>> +             (chdir "src"))))))
>
> I would call this phase 'chdir'.

Okay I will update when we can solve the url above.
Their download site, http://tintin.sourceforge.net/download.php, says:
http://sourceforge.net/projects/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download

And when I try /project/ instead of /projects/ I get:
ng0@shadowwalker ~$ wget http://sourceforge.net/project/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download
--2016-08-19 20:35:45--
http://sourceforge.net/project/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download
Resolving sourceforge.net (sourceforge.net)... 216.34.181.60
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location:
https://sourceforge.net/project/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download [following]
--2016-08-19 20:35:45--
https://sourceforge.net/project/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download
Connecting to sourceforge.net
(sourceforge.net)|216.34.181.60|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-08-19 20:35:46 ERROR 404: Not Found.

while /projects/ would resolve:

ng0@shadowwalker ~$ wget
http://sourceforge.net/projects/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download
--2016-08-19 20:38:53--
http://sourceforge.net/projects/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download
Resolving sourceforge.net (sourceforge.net)... 216.34.181.60
Connecting to sourceforge.net
(sourceforge.net)|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location:
https://sourceforge.net/projects/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download
[following]
--2016-08-19 20:38:56--
https://sourceforge.net/projects/tintin/files/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz/download
Connecting to sourceforge.net
(sourceforge.net)|216.34.181.60|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz?r=&ts=1471639137&use_mirror=netix
[following]
--2016-08-19 20:38:57--
http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz?r=&ts=1471639137&use_mirror=netix
Resolving downloads.sourceforge.net
(downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net
(downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://netix.dl.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz
[following]
--2016-08-19 20:38:57--
http://netix.dl.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.01.1/tintin-2.01.1.tar.gz
Resolving netix.dl.sourceforge.net
(netix.dl.sourceforge.net)... 87.121.121.2
Connecting to netix.dl.sourceforge.net
(netix.dl.sourceforge.net)|87.121.121.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 272506 (266K) [application/x-gzip]
Saving to: ‘download’

download
100%[===============================================================================================>]
266.12K   850KB/s    in 0.3s

2016-08-19 20:38:58 (850 KB/s) - ‘download’ saved [272506/272506]


>
>> +    (home-page "http://tintin.sourceforge.net/")
>
> HTTPS, if possible.

In this case, no. This sourceforge subdomain has no tls option:
Oops! Unable to display this website.
The site at “https://tintin.sourceforge.net/” seems to be
unavailable. The precise error was:
Could not connect: Connection refused
It may be temporarily unavailable or moved to a new address. You may
wish to verify that your internet connection is working correctly.

>
> Otherwise, looks good so far!

Thanks
-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] Add tintin.
  2016-08-19  9:48         ` David Craven
                             ` (2 preceding siblings ...)
  2016-08-19 19:15           ` Leo Famulari
@ 2016-08-20 16:38           ` Alex Vong
  2016-08-20 17:18             ` David Craven
  3 siblings, 1 reply; 23+ messages in thread
From: Alex Vong @ 2016-08-20 16:38 UTC (permalink / raw)
  To: David Craven; +Cc: guix-devel

David Craven <david@craven.ch> writes:

>> I usually attach the patches as files, in notmuch emacs they are saved
>> by pressing
>> . s
>> when in the displayed attached files part. Or what exactly do you mean?
>
> Yep that's what I mean. I'm currently doing this:
> Look at the patch in gmail
> touch 0.patch
> copy paste the email into 0.patch
> git am 0.patch
> copy paste again because I didn't copy the right part
> git am 0.patch
>
> and was wondering if there was a better way... I've read good things
> about emacs, but I still haven't taken the learning curve. I gave it a
> try a couple of weeks ago but gave up after a couple of hours =P

Hmmm, my way of learning emacs is to read the Emacs Tutorial but not to
read the Emacs Manual, because it goes into things too deep for newbies
IMO. Then, I try to code in emacs and eventually I get comfortable in
emacs key bindings. Only then I start to look into packages and elisp
programming. (emacs is actually what get me into learning scheme)
Alternatively, if you are used to vim, you could try Evil Mode, which
emulates vim key bindings.

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

* Re: [PATCH] Add tintin.
  2016-08-20 16:38           ` Alex Vong
@ 2016-08-20 17:18             ` David Craven
  2016-08-23 17:05               ` David Craven
  0 siblings, 1 reply; 23+ messages in thread
From: David Craven @ 2016-08-20 17:18 UTC (permalink / raw)
  To: Alex Vong; +Cc: guix-devel

> Hmmm, my way of learning emacs is to read the Emacs Tutorial but not to
> read the Emacs Manual, because it goes into things too deep for newbies
> IMO. Then, I try to code in emacs and eventually I get comfortable in
> emacs key bindings. Only then I start to look into packages and elisp
> programming. (emacs is actually what get me into learning scheme)
> Alternatively, if you are used to vim, you could try Evil Mode, which
> emulates vim key bindings.

I completed the evil-tutor thing in spacemacs yesterday, and think
I'll get used to
it. The main problem I had when getting started with emacs, is that the bindings
appear to be random? With spacemacs finding the relevant commands was easy,
(space b for buffer and n for next). I think that's easy to
remember... and it comes
with a lot of packages pre-installed and with sane defaults. I think that
the vim key bindings are more known, since everyone has had to modify
a config file
over ssh and use :wq and insert mode, and that's pretty much all you need to get
started.

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

* Re: [PATCH] Add tintin.
  2016-08-20 17:18             ` David Craven
@ 2016-08-23 17:05               ` David Craven
  2016-08-23 22:31                 ` ng0
  2016-08-24  8:35                 ` Question about emacs and guix (was: Re: [PATCH] Add tintin) Alex Kost
  0 siblings, 2 replies; 23+ messages in thread
From: David Craven @ 2016-08-23 17:05 UTC (permalink / raw)
  To: Alex Vong; +Cc: guix-devel

> I usually attach the patches as files, in notmuch emacs they are saved
> by pressing . s when in the displayed attached files part.

That doesn't save the email header with the patch, which is required to
apply the patch with am. Otherwise it's just a diff and not a patch... Do
you use git apply? Or am I doing something wrong?

> The guix plugin worked out of the box on GuixSD. I have not set it up on
> my main workstation, as I mainly work from a terminal, and it did not
> integrate well with Evil.

Running C-c . b gives me this error msg:
ERROR: No variable named guile-final in #<interface (gnu packages
commencement) 7e435a0>

> Yes, I have a layer called "mail". Here is config.el, using two mail
> accounts (this one and work). Don't ask what all the options mean...

Thank you, I got it working! =)

Spacemacs is awesome!

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

* Re: [PATCH] Add tintin.
  2016-08-23 17:05               ` David Craven
@ 2016-08-23 22:31                 ` ng0
  2016-08-23 23:00                   ` David Craven
  2016-08-24  8:35                 ` Question about emacs and guix (was: Re: [PATCH] Add tintin) Alex Kost
  1 sibling, 1 reply; 23+ messages in thread
From: ng0 @ 2016-08-23 22:31 UTC (permalink / raw)
  To: David Craven, Alex Vong; +Cc: guix-devel

David Craven <david@craven.ch> writes:

>> I usually attach the patches as files, in notmuch emacs they are saved
>> by pressing . s when in the displayed attached files part.
>
> That doesn't save the email header with the patch, which is required to
> apply the patch with am. Otherwise it's just a diff and not a patch... Do
> you use git apply? Or am I doing something wrong?

You must be doing something wrong or spacemacs is different. I don't
know spacemacs. It works for me in emacs.

>
>> The guix plugin worked out of the box on GuixSD. I have not set it up on
>> my main workstation, as I mainly work from a terminal, and it did not
>> integrate well with Evil.
>
> Running C-c . b gives me this error msg:
> ERROR: No variable named guile-final in #<interface (gnu packages
> commencement) 7e435a0>

Is this error addressed to me and the patch this sided iscussion started
with? 
I need to collect links to point to soon, so this offtopic discussion is
nothing which adds any noise to discussion for me at the moment,
otherwise I would ask you to change the subject to
"spacemacs questions (was: Re: [PATCH] Add tintin.)".

>> Yes, I have a layer called "mail". Here is config.el, using two mail
>> accounts (this one and work). Don't ask what all the options mean...
>
> Thank you, I got it working! =)
>
> Spacemacs is awesome!
-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] Add tintin.
  2016-08-23 22:31                 ` ng0
@ 2016-08-23 23:00                   ` David Craven
  0 siblings, 0 replies; 23+ messages in thread
From: David Craven @ 2016-08-23 23:00 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

> Is this error addressed to me and the patch this sided iscussion started
> with?
> I need to collect links to point to soon, so this offtopic discussion is
> nothing which adds any noise to discussion for me at the moment,
> otherwise I would ask you to change the subject to
> "spacemacs questions (was: Re: [PATCH] Add tintin.)".

Sorry for going of topic. Nope wasn't addressed to you necessarily.
I'll start a new topic in help-guix if I don't figure it out. =)

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

* Question about emacs and guix (was: Re: [PATCH] Add tintin)
  2016-08-23 17:05               ` David Craven
  2016-08-23 22:31                 ` ng0
@ 2016-08-24  8:35                 ` Alex Kost
  1 sibling, 0 replies; 23+ messages in thread
From: Alex Kost @ 2016-08-24  8:35 UTC (permalink / raw)
  To: David Craven; +Cc: guix-devel

David Craven (2016-08-23 20:05 +0300) wrote:

> Running C-c . b gives me this error msg:
> ERROR: No variable named guile-final in #<interface (gnu packages
> commencement) 7e435a0>

If you mean you opened ".../gnu/packages/commencement.scm" file, moved
the point inside 'guile-final' definition, and pressed "C-c . b", then I
can only say that it works for me.

-- 
Alex

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

end of thread, other threads:[~2016-08-24  8:36 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 20:00 [PATCH] Add tintin ng0
2016-08-08 20:12 ` ng0
2016-08-08 21:13 ` ng0
2016-08-08 21:21 ` ng0
2016-08-19  9:01   ` ng0
2016-08-19  9:21     ` David Craven
2016-08-19  9:38       ` ng0
2016-08-19  9:48         ` David Craven
2016-08-19 10:30           ` ng0
2016-08-19 11:25             ` David Craven
2016-08-19 11:50           ` Marius Bakke
2016-08-19 12:38             ` David Craven
2016-08-19 17:59               ` David Craven
2016-08-19 18:46                 ` Marius Bakke
2016-08-19 19:15           ` Leo Famulari
2016-08-20 16:38           ` Alex Vong
2016-08-20 17:18             ` David Craven
2016-08-23 17:05               ` David Craven
2016-08-23 22:31                 ` ng0
2016-08-23 23:00                   ` David Craven
2016-08-24  8:35                 ` Question about emacs and guix (was: Re: [PATCH] Add tintin) Alex Kost
2016-08-19 19:32   ` [PATCH] Add tintin Leo Famulari
2016-08-19 20:40     ` ng0

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