GNU bug report logs - #45130
[PATCH] gnu: Add mtm.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: luhux <luhux@HIDDEN>; Keywords: patch; dated Wed, 9 Dec 2020 01:50:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 45130 <at> debbugs.gnu.org:


Received: (at 45130) by debbugs.gnu.org; 10 Nov 2021 13:42:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 10 08:42:16 2021
Received: from localhost ([127.0.0.1]:37383 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mknrc-0006Td-K4
	for submit <at> debbugs.gnu.org; Wed, 10 Nov 2021 08:42:16 -0500
Received: from mail-4322.protonmail.ch ([185.70.43.22]:10299)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1mknrZ-0006T8-MV
 for 45130 <at> debbugs.gnu.org; Wed, 10 Nov 2021 08:42:07 -0500
Date: Wed, 10 Nov 2021 13:41:57 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1636551718;
 bh=bdv1l3U3Wti2vwoKyM6GKwtgmRchOyfxGpL9beb91OE=;
 h=Date:To:From:Cc:Reply-To:Subject:From;
 b=KUb6kicurLL2tn0oryZOO6AZ27qxZp8rkJz6WfLZ1MFODzG3MyMt+CbnSZDzS7/ah
 1Yh0J6hMEAoZ0DhIZgjQ+pwQRMtZMDx66dj2OMNK3m3Cf/thlNDqEad/7FAGPZpuK+
 5CaR3IvartVsJjsL+SsirUWgml9quX/vw6pztWyY=
To: Nicolas Goaziou <mail@HIDDEN>
From: phodina <phodina@HIDDEN>
Subject: [PATCH v2] gnu: Add mtm.
Message-ID: <cE5kHO_xe3OUPT3UOx1_XjlFSTm0DhGHdwTU308ZeRNIVyk1psCdXUT9-_N_d2dMHuFMnCqm60ylAy1PsIaI1Q9EOSJybPTbDYp8SNAiZoo=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 45130
Cc: "45130 <at> debbugs.gnu.org" <45130 <at> debbugs.gnu.org>,
 phodina via Guix-patches via <guix-patches@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Nicolas,

here's updated patch. The mtm package is placed in terminals.scm with the s=
uggestions you mentioned above.

---
Kind regards
Petr

* gnu/packages/terminals.scm (mtm): New variable.

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 8d751f6cce..b2c214275e 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -23,11 +23,13 @@
 ;;; Copyright =C2=A9 2020, 2021 Marius Bakke <marius@HIDDEN>
 ;;; Copyright =C2=A9 2020, 2021 Nicolas Goaziou <mail@HIDDEN>
 ;;; Copyright =C2=A9 2020 Leo Famulari <leo@HIDDEN>
+;;; Copyright @ 2020 luhux <luhux@HIDDEN>
 ;;; Copyright =C2=A9 2021 Ekaitz Zarraga <ekaitz@HIDDEN>
 ;;; Copyright =C2=A9 2021 Rapha=C3=ABl M=C3=A9lotte <raphael.melotte@mind.=
be>
 ;;; Copyright =C2=A9 2021 ikasero <ahmed@HIDDEN>
 ;;; Copyright =C2=A9 2021 Brice Waegeneire <brice@HIDDEN>
 ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
+;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -424,6 +426,64 @@ (define-public mlterm
 Vietnamese, and bi-directional scripts like Arabic and Hebrew.")
     (license license:bsd-3)))

+(define-public mtm
+  (package
+    (name "mtm")
+    (version "1.2.1")
+    (source
+     (origin
+       (uri (git-reference
+             (url "https://github.com/deadpixi/mtm")
+             (commit version)))
+       (method git-fetch)
+       (sha256
+        (base32 "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv"))
+       (file-name (git-file-name name version))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("ncurses" ,ncurses)))
+    (arguments
+     `(#:tests? #f                      ; no tests
+       #:make-flags
+       (list (string-append "CC=3D" ,(cc-for-target))
+             (string-append "DESTDIR=3D" (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'fix-headers
+           (lambda _
+             (substitute* "config.def.h"
+               (("ncursesw/curses.h")
+                "curses.h"))))
+         (replace 'install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out")))
+               ;; install binary
+               (mkdir-p (string-append out "bin/"))
+               (install-file "mtm" (string-append out "/bin"))
+               ;; install manpage
+               (mkdir-p (string-append out "share/man/man1"))
+               (install-file "mtm.1" (string-append out "/share/man/man1")=
)
+               ;; install terminfo
+               (mkdir-p (string-append out "share/terminfo"))
+               (invoke (string-append (assoc-ref inputs "ncurses") "/bin/t=
ic")
+                       "-x" "-s" "-o"
+                       (string-append
+                        out "/share/terminfo")
+                       "mtm.ti"))))
+         (delete 'configure))))         ; no configure script
+    ;; FIXME: This should only be located in 'ncurses'.  Nonetheless it is
+    ;; provided for usability reasons.  See <https://bugs.gnu.org/22138>.
+    (native-search-paths
+     (list (search-path-specification
+            (variable "TERMINFO_DIRS")
+            (files '("share/terminfo")))))
+    (home-page "https://github.com/deadpixi/mtm")
+    (synopsis "Micro Terminal Multiplexer")
+    (description
+     "This package provides multiplexer for the terminal focused on simpli=
city,
+compatibility, size and stability.")
+    (license license:gpl3+)))
+
 (define-public picocom
   (package
     (name "picocom")
--
2.33.1




Information forwarded to guix-patches@HIDDEN:
bug#45130; Package guix-patches. Full text available.

Message received at 45130 <at> debbugs.gnu.org:


Received: (at 45130) by debbugs.gnu.org; 6 Nov 2021 09:33:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 06 05:33:33 2021
Received: from localhost ([127.0.0.1]:48418 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mjI4r-0004b0-4q
	for submit <at> debbugs.gnu.org; Sat, 06 Nov 2021 05:33:33 -0400
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:47225)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1mjI4p-0004am-29
 for 45130 <at> debbugs.gnu.org; Sat, 06 Nov 2021 05:33:31 -0400
Received: (Authenticated sender: admin@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id C2957C0002;
 Sat,  6 Nov 2021 09:33:24 +0000 (UTC)
From: Nicolas Goaziou <mail@HIDDEN>
To: phodina via Guix-patches via <guix-patches@HIDDEN>
Subject: Re: [bug#45130] [PATCH] gnu: Add mtm.
References: <PSXP216MB0214487C7C5BF4A7E39CEDBEA0CC0@HIDDEN>
 <GwMTp8ygmCCiAMrjCdoEcc6U0YgCYQW94qR3-HtJyctzllh5ZQpoL3wrKruabh-ug8O7uP7SnY4-Pcu0BnqHQk2r1Z9qjWD25Y4H8axy0EQ=@protonmail.com>
Date: Sat, 06 Nov 2021 10:33:17 +0100
In-Reply-To: <GwMTp8ygmCCiAMrjCdoEcc6U0YgCYQW94qR3-HtJyctzllh5ZQpoL3wrKruabh-ug8O7uP7SnY4-Pcu0BnqHQk2r1Z9qjWD25Y4H8axy0EQ=@protonmail.com>
 (phodina via Guix-patches via's message of "Wed, 03 Nov 2021 14:53:00
 +0000")
Message-ID: <8735o9r5lu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 45130
Cc: "45130 <at> debbugs.gnu.org" <45130 <at> debbugs.gnu.org>,
 phodina <phodina@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hello,

phodina via Guix-patches via <guix-patches@HIDDEN> writes:

> here's updated version of the patch where the version uses newest tag
> instead of commit. Otherwise LGTM.

Is there any reason to put the variable in suckless.scm?

> +         (replace 'install
> +           (lambda* (#:key inputs outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out")))
> +               ;; install binary
> +               (mkdir-p (string-append out "bin/"))
> +               (install-file "mtm" (string-append out "/bin"))
> +               ;; install manpage
> +               (mkdir-p (string-append out "share/man/man1"))
> +               (install-file "mtm.1" (string-append out "/share/man/man1"))
> +               ;; install terminfo
> +               (mkdir-p (string-append out "share/terminfo"))
> +               (invoke (string-append (assoc-ref inputs "ncurses") "/bin/tic")
> +                       "-x" "-s" "-o"
> +                       (string-append
> +                        out "/share/terminfo")
> +                       "mtm.ti"))
> +             #t))

We can remove the trailing #t.

> +         (delete 'configure))))

There's probably a missing comment "no configure script"

> +    ;; FIXME: This should only be located in 'ncurses'.  Nonetheless it is
> +    ;; provided for usability reasons.  See <https://bugs.gnu.org/22138>.
> +    (native-search-paths
> +     (list (search-path-specification
> +            (variable "TERMINFO_DIRS")
> +            (files '("share/terminfo")))))
> +    (synopsis "Micro Terminal Multiplexer")
> +    (description
> +     "This package provides multiplexer for the terminal focused on simplicity,
> +compatibility, size and stability.")
> +    (license license:gpl3+)
> +    (home-page "https://github.com/deadpixi/mtm")))

Nitpick: the home-page field is usually above the synopsis.

Regards,
-- 
Nicolas Goaziou




Information forwarded to guix-patches@HIDDEN:
bug#45130; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Nov 2021 09:33:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 06 05:33:38 2021
Received: from localhost ([127.0.0.1]:48421 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mjI4w-0004bI-Do
	for submit <at> debbugs.gnu.org; Sat, 06 Nov 2021 05:33:38 -0400
Received: from lists.gnu.org ([209.51.188.17]:33472)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1mjI4r-0004b7-MK
 for submit <at> debbugs.gnu.org; Sat, 06 Nov 2021 05:33:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43730)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>)
 id 1mjI4r-0008WL-HJ
 for guix-patches@HIDDEN; Sat, 06 Nov 2021 05:33:33 -0400
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:37401)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>)
 id 1mjI4p-0002eg-DE
 for guix-patches@HIDDEN; Sat, 06 Nov 2021 05:33:33 -0400
Received: (Authenticated sender: admin@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id C2957C0002;
 Sat,  6 Nov 2021 09:33:24 +0000 (UTC)
From: Nicolas Goaziou <mail@HIDDEN>
To: phodina via Guix-patches via <guix-patches@HIDDEN>
Subject: Re: [bug#45130] [PATCH] gnu: Add mtm.
References: <PSXP216MB0214487C7C5BF4A7E39CEDBEA0CC0@HIDDEN>
 <GwMTp8ygmCCiAMrjCdoEcc6U0YgCYQW94qR3-HtJyctzllh5ZQpoL3wrKruabh-ug8O7uP7SnY4-Pcu0BnqHQk2r1Z9qjWD25Y4H8axy0EQ=@protonmail.com>
Date: Sat, 06 Nov 2021 10:33:17 +0100
In-Reply-To: <GwMTp8ygmCCiAMrjCdoEcc6U0YgCYQW94qR3-HtJyctzllh5ZQpoL3wrKruabh-ug8O7uP7SnY4-Pcu0BnqHQk2r1Z9qjWD25Y4H8axy0EQ=@protonmail.com>
 (phodina via Guix-patches via's message of "Wed, 03 Nov 2021 14:53:00
 +0000")
Message-ID: <8735o9r5lu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=217.70.183.198;
 envelope-from=mail@HIDDEN; helo=relay6-d.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
Cc: "45130 <at> debbugs.gnu.org" <45130 <at> debbugs.gnu.org>,
 phodina <phodina@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Hello,

phodina via Guix-patches via <guix-patches@HIDDEN> writes:

> here's updated version of the patch where the version uses newest tag
> instead of commit. Otherwise LGTM.

Is there any reason to put the variable in suckless.scm?

> +         (replace 'install
> +           (lambda* (#:key inputs outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out")))
> +               ;; install binary
> +               (mkdir-p (string-append out "bin/"))
> +               (install-file "mtm" (string-append out "/bin"))
> +               ;; install manpage
> +               (mkdir-p (string-append out "share/man/man1"))
> +               (install-file "mtm.1" (string-append out "/share/man/man1"))
> +               ;; install terminfo
> +               (mkdir-p (string-append out "share/terminfo"))
> +               (invoke (string-append (assoc-ref inputs "ncurses") "/bin/tic")
> +                       "-x" "-s" "-o"
> +                       (string-append
> +                        out "/share/terminfo")
> +                       "mtm.ti"))
> +             #t))

We can remove the trailing #t.

> +         (delete 'configure))))

There's probably a missing comment "no configure script"

> +    ;; FIXME: This should only be located in 'ncurses'.  Nonetheless it is
> +    ;; provided for usability reasons.  See <https://bugs.gnu.org/22138>.
> +    (native-search-paths
> +     (list (search-path-specification
> +            (variable "TERMINFO_DIRS")
> +            (files '("share/terminfo")))))
> +    (synopsis "Micro Terminal Multiplexer")
> +    (description
> +     "This package provides multiplexer for the terminal focused on simplicity,
> +compatibility, size and stability.")
> +    (license license:gpl3+)
> +    (home-page "https://github.com/deadpixi/mtm")))

Nitpick: the home-page field is usually above the synopsis.

Regards,
-- 
Nicolas Goaziou




Information forwarded to guix-patches@HIDDEN:
bug#45130; Package guix-patches. Full text available.

Message received at 45130 <at> debbugs.gnu.org:


Received: (at 45130) by debbugs.gnu.org; 3 Nov 2021 14:53:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 03 10:53:17 2021
Received: from localhost ([127.0.0.1]:40875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1miHdY-0003PE-4b
	for submit <at> debbugs.gnu.org; Wed, 03 Nov 2021 10:53:17 -0400
Received: from mail-4316.protonmail.ch ([185.70.43.16]:44897)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1miHdV-0003Oy-46
 for 45130 <at> debbugs.gnu.org; Wed, 03 Nov 2021 10:53:10 -0400
Date: Wed, 03 Nov 2021 14:53:00 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1635951181;
 bh=7f937UuLRMOvfCbbbnhlZiCwl97ieWz2lsJdlcOYFqo=;
 h=Date:To:From:Reply-To:Subject:From;
 b=MbreYIVGI1ca86chxbw2suZHAJ7dneAsT43z6ybCZRU6xR/UzHQiqOy3uTwXH50+J
 FIGIe8xJL8wWuZPlK/t3D1CNuKD76rCC8gNgoWTFpGIG9eQF8IxzXlwL8zZ8qrFAxR
 ivcfwjvFkS20B/q4hJa2siGTWubQntZ3985AySxQ=
To: "45130 <at> debbugs.gnu.org" <45130 <at> debbugs.gnu.org>
From: phodina <phodina@HIDDEN>
Subject: RE: [PATCH] gnu: Add mtm.
Message-ID: <GwMTp8ygmCCiAMrjCdoEcc6U0YgCYQW94qR3-HtJyctzllh5ZQpoL3wrKruabh-ug8O7uP7SnY4-Pcu0BnqHQk2r1Z9qjWD25Y4H8axy0EQ=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 45130
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

here's updated version of the patch where the version uses newest tag inste=
ad of commit. Otherwise LGTM.

--8<---------------cut here---------------start------------->8---

Subject: [PATCH v2] gnu: Add mtm.

* gnu/packages/suckless.scm (mtm): New variable.

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index b4855ec0a2..0e21af24e5 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -8,6 +8,7 @@
 ;;; Copyright =C2=A9 2016 Eric Bavier <bavier@HIDDEN>
 ;;; Copyright =C2=A9 2017 Alex Griffin <a@HIDDEN>
 ;;; Copyright =C2=A9 2018=E2=80=932021 Tobias Geerinckx-Rice <me@HIDDEN=
>
+;;; Copyright @ 2020 luhux <luhux@HIDDEN>
 ;;; Copyright =C2=A9 2021 Raghav Gururajan <rg@HIDDEN>
 ;;; Copyright =C2=A9 2021 Alexandru-Sergiu Marton <brown121407@HIDDEN>
 ;;;
@@ -700,6 +701,65 @@ (define-public noice
      "Noice is a small curses-based file browser.")
     (license license:bsd-2)))

+(define-public mtm
+  (package
+    (name "mtm")
+    (version "1.2.1")
+    (source
+     (origin
+       (uri (git-reference
+             (url "https://github.com/deadpixi/mtm")
+             (commit version)))
+       (method git-fetch)
+       (sha256
+        (base32 "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv"))
+       (file-name (git-file-name name version))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("ncurses" ,ncurses)))
+    (arguments
+     `(#:tests? #f                      ; no tests
+       #:make-flags
+       (list (string-append "CC=3D" ,(cc-for-target))
+             (string-append "DESTDIR=3D" (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'fix-headers
+           (lambda _
+             (substitute* "config.def.h"
+               (("ncursesw/curses.h")
+                "curses.h"))))
+         (replace 'install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out")))
+               ;; install binary
+               (mkdir-p (string-append out "bin/"))
+               (install-file "mtm" (string-append out "/bin"))
+               ;; install manpage
+               (mkdir-p (string-append out "share/man/man1"))
+               (install-file "mtm.1" (string-append out "/share/man/man1")=
)
+               ;; install terminfo
+               (mkdir-p (string-append out "share/terminfo"))
+               (invoke (string-append (assoc-ref inputs "ncurses") "/bin/t=
ic")
+                       "-x" "-s" "-o"
+                       (string-append
+                        out "/share/terminfo")
+                       "mtm.ti"))
+             #t))
+         (delete 'configure))))
+    ;; FIXME: This should only be located in 'ncurses'.  Nonetheless it is
+    ;; provided for usability reasons.  See <https://bugs.gnu.org/22138>.
+    (native-search-paths
+     (list (search-path-specification
+            (variable "TERMINFO_DIRS")
+            (files '("share/terminfo")))))
+    (synopsis "Micro Terminal Multiplexer")
+    (description
+     "This package provides multiplexer for the terminal focused on simpli=
city,
+compatibility, size and stability.")
+    (license license:gpl3+)
+    (home-page "https://github.com/deadpixi/mtm")))
+
 (define-public human
   (package
     (name "human")
--
2.33.1




Information forwarded to guix-patches@HIDDEN:
bug#45130; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Dec 2020 01:49:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 08 20:49:23 2020
Received: from localhost ([127.0.0.1]:60327 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kmobX-0008HM-O2
	for submit <at> debbugs.gnu.org; Tue, 08 Dec 2020 20:49:23 -0500
Received: from lists.gnu.org ([209.51.188.17]:46292)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luhux@HIDDEN>) id 1kmobV-0008HF-QJ
 for submit <at> debbugs.gnu.org; Tue, 08 Dec 2020 20:49:19 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48852)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <luhux@HIDDEN>) id 1kmobV-0006TI-EV
 for guix-patches@HIDDEN; Tue, 08 Dec 2020 20:49:17 -0500
Received: from mail-oln040092254037.outbound.protection.outlook.com
 ([40.92.254.37]:31040 helo=APC01-PU1-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <luhux@HIDDEN>) id 1kmobR-0003EA-AY
 for guix-patches@HIDDEN; Tue, 08 Dec 2020 20:49:16 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=I+5Ol7qIYb2HNdODaLyV/SDfiq+A3zfzNHFLrXteCR5IKbhCpvtLDgxt01Ij5K1O/sOiLIdHvEn8bw+xOakP98C3RzIozL/iFDHq05KuuJqWK2NS03Gqwo5V7a/HYZ3h5OhMFvMTyHkfkACupciZatq0OHpBpIrxSGwSKxnbNbBOO12FdmCuZR98uFiBJpiEXwoONwIImi3SRD7camlchlT6lPPxyc8FSLYCebfCkeItYfnm1fjoFAXJMy/jKPk7JYTjVuyQ8/Z25On+S6fGiaAuxvoR7XuFFTCv+AisoxjRpRrqp5xLboUHuq1nl7rJDRdDsIiY+vBD3ldlDhJ66A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=JIKSUzsvOkxU5/k/RhX8PNq19RT/LXyfG65/fLXeUbM=;
 b=ESjHRgcC55TkIkJkOEVb8S+i4kqsbJac59ojYj7THO6N4y8wexgReyw76BmY5gcD1QfPj84isntVBHWUuVsoqVfdyTJp8OYIa7GXH/lQ8Kuvccs05KhjihM0QdY/R7JyB0DAjt13R4z7vU2AN/njEsK6txp13DQwjumIvJ+S9pyDRpaXaeiT7HRD7wGqfSIYookfFgtxlx9UC8e/+TtJ3B3QaqhMUEJS5Mzp9KxfTx+NVbtuyzD4rL5bi4YRVA4hRGLvck5M2BVXsUGEGNndIqLq+1G6tRHzutCezkeNyTIlXOY4hOM+0V9/+Z7Bvn+Kx7X+RajEIZxHjdFo6j0uDg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=JIKSUzsvOkxU5/k/RhX8PNq19RT/LXyfG65/fLXeUbM=;
 b=MPMYlyhXY6hoXSyT7MqVqpMZsLoYF48e362xobXJw20358PixUQv8ZlDBIKYvs9wJp90AcXAVa7/b7Sg8iVJY37ZJQKLD6DBkvHE0g1shvDd8mkdNSGpmD43bEncRotgKghi+0/KawLbaYhQ/PzEzJK3XSRlBiqfQayKvuLLawYYU5eB6ktZT3Z0xdL4Dp7ZAAASWBvW2glQljsFMbNVBzdaZSdZUMW5Us1fgj7+++qSEHRFemCE0DxLc4r8THiYNbtyiz97VIMjLNhM4DXwkf5+FYJcekRg7dmQcBiQ3EgTyGC1i3hUmUuD9NtaewoUyAQCZJioIGuk6MisIgYwFw==
Received: from PU1APC01FT060.eop-APC01.prod.protection.outlook.com
 (2a01:111:e400:7ebe::42) by
 PU1APC01HT068.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::323)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Wed, 9 Dec
 2020 01:33:58 +0000
Received: from PSXP216MB0214.KORP216.PROD.OUTLOOK.COM (10.152.252.60) by
 PU1APC01FT060.mail.protection.outlook.com (10.152.253.44) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 01:33:58 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:09E90A96EFD9B358CF2D233C8F04A2A9F37D1A130D52DF8E479BA7C2E4893ABD;
 UpperCasedChecksum:6947130720440F471DD984C8CF1342FB9974BA62A14DD51B1170D51C99F580B6;
 SizeAsReceived:7272; Count:44
Received: from PSXP216MB0214.KORP216.PROD.OUTLOOK.COM
 ([fe80::3596:cdc4:9180:eeb3]) by PSXP216MB0214.KORP216.PROD.OUTLOOK.COM
 ([fe80::3596:cdc4:9180:eeb3%8]) with mapi id 15.20.3632.023; Wed, 9 Dec 2020
 01:33:58 +0000
Date: Wed, 9 Dec 2020 01:33:49 +0000
From: luhux <luhux@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add mtm.
Message-ID: <PSXP216MB0214487C7C5BF4A7E39CEDBEA0CC0@HIDDEN>
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-TMN: [tyeEulvI3IrW1J4Dr2LRPpUvrWIH12i+]
X-ClientProxiedBy: HK2PR02CA0137.apcprd02.prod.outlook.com
 (2603:1096:202:16::21) To PSXP216MB0214.KORP216.PROD.OUTLOOK.COM
 (2603:1096:300:7::12)
X-Microsoft-Original-Message-ID: <X9An+cTGU0+tul28@tencent>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from localhost (119.45.133.18) by
 HK2PR02CA0137.apcprd02.prod.outlook.com (2603:1096:202:16::21) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 01:33:56 +0000
X-MS-PublicTrafficType: Email
X-IncomingHeaderCount: 44
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-Correlation-Id: c810af61-1dba-4737-066f-08d89be27fc8
X-MS-TrafficTypeDiagnostic: PU1APC01HT068:
X-MS-Exchange-MinimumUrlDomainAge: github.com#4810
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: jfMOwLzT5OlG1sYKR0XBYl5JDrnNvzhCNHVq3ZLj0L7KMisV/UVNA61Tnf1ci0DRqOdpvqmf3QWBPEVA+eNHlAEa+HZKFxI6Htd+wGlFUwsD8QWNVdhA4TaN4fxksTlIZWUtNiC+Bqxu3e+El0pNHAnJ+JeIhQ2dXK8mlomdBpggk4djA/p6oyCvTEh21+EVp0cPb6iVdZ7x8laGyg9V6HZ5Lefsk4UTKdv5WAWiaWCFSrLBg242xy8+R2zbSbMC
X-MS-Exchange-AntiSpam-MessageData: qfvzqDpRlsyqjev//9OChXPt3w3bQ16/f+wk7cZR1BSDHsZkbO1+PCIqnlQ97BYXwVMYZzVzvfTRjXKFBHlbwFjaD/p6+70Jx11d/eerAQTzMqztpNmi8xEG663nnhjbzpE7gKFRT0IETKZQdsDaeQ==
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 01:33:58.1104 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-Network-Message-Id: c810af61-1dba-4737-066f-08d89be27fc8
X-MS-Exchange-CrossTenant-AuthSource: PU1APC01FT060.eop-APC01.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT068
Received-SPF: pass client-ip=40.92.254.37; envelope-from=luhux@HIDDEN;
 helo=APC01-PU1-obe.outbound.protection.outlook.com
X-Spam_score_int: -16
X-Spam_score: -1.7
X-Spam_bar: -
X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1,
 DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


From 6f1a84e8b4feb3cc3c80095fe2aeec30d7862d9d Mon Sep 17 00:00:00 2001
From: luhux <luhux@HIDDEN>
Date: Wed, 9 Dec 2020 00:47:03 +0000
Subject: [PATCH] gnu: Add mtm.

* gnu/packages/suckless.scm (mtm): New variable.
---
 gnu/packages/suckless.scm | 61 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index 7e297eb9ae..00f90a36ff 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -8,6 +8,7 @@
 ;;; Copyright  2016 Eric Bavier <bavier@HIDDEN>
 ;;; Copyright  2017 Alex Griffin <a@HIDDEN>
 ;;; Copyright  2018, 2019, 2020 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright  2020 luhux <luhux@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -766,3 +767,63 @@ chat output in the background.")
 Single daemon and configuration file.  Log to stdout or syslog.  No mail
 support.")
     (license license:expat)))
+
+(define-public mtm
+  (let ((commit "cabd8704b9299d8b354ec8b403a6041bbddd2191")
+        (revision "0"))
+    (package
+      (name "mtm")
+      (version (git-version "1.2.0" revision commit))
+      (source
+       (origin
+         (uri (git-reference
+               (url "https://github.com/deadpixi/mtm")
+               (commit commit)))
+         (method git-fetch)
+         (sha256
+          (base32 "08crai3wxa6npd27y6qd290mj55l0bk8ibm4agyb002kbga8vkc7"))
+         (file-name (git-file-name name version))))
+      (build-system gnu-build-system)
+      (inputs
+       `(("ncurses" ,ncurses)))
+      (arguments
+       `(#:tests? #f ; no tests
+         #:make-flags
+         (list (string-append "CC=" ,(cc-for-target))
+               (string-append "DESTDIR=" (assoc-ref %outputs "out")))
+         #:phases
+         (modify-phases %standard-phases
+           (add-before 'build 'fix-headers
+               (lambda _
+                 (substitute* "config.def.h"
+                   (("ncursesw/curses.h")
+                    "curses.h"))))
+           (replace 'install
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (let* ((out (assoc-ref outputs "out")))
+                 ;; install binary
+                 (mkdir-p (string-append out "bin/"))
+                 (install-file "mtm" (string-append out "/bin"))
+                 ;; install manpage
+                 (mkdir-p (string-append out "share/man/man1"))
+                 (install-file "mtm.1" (string-append out "/share/man/man1"))
+                 ;; install terminfo
+                 (mkdir-p (string-append out "share/terminfo"))
+                 (invoke (string-append (assoc-ref inputs "ncurses") "/bin/tic")
+                         "-x" "-s" "-o"
+                         (string-append
+                          out "/share/terminfo")
+                         "mtm.ti"))
+               #t))
+           (delete 'configure))))
+      ;; FIXME: This should only be located in 'ncurses'.  Nonetheless it is
+      ;; provided for usability reasons.  See <https://bugs.gnu.org/22138>.
+      (native-search-paths
+       (list (search-path-specification
+              (variable "TERMINFO_DIRS")
+              (files '("share/terminfo")))))
+      (synopsis "Micro Terminal Multiplexer")
+      (description
+       "Micro Terminal Multiplexer")
+      (license license:gpl3+)
+      (home-page "https://github.com/deadpixi/mtm"))))
-- 
2.29.2





Acknowledgement sent to luhux <luhux@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#45130; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 10 Nov 2021 13:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.