From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kA37JVgt0F+lMwAA0tVLHw (envelope-from ) for ; Wed, 09 Dec 2020 01:50:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yCvHIVgt0F8/aAAAB5/wlQ (envelope-from ) for ; Wed, 09 Dec 2020 01:50:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2E68C940111 for ; Wed, 9 Dec 2020 01:50:16 +0000 (UTC) Received: from localhost ([::1]:52644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmocR-0006hD-0x for larch@yhetil.org; Tue, 08 Dec 2020 20:50:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmocE-0006gr-Qq for guix-patches@gnu.org; Tue, 08 Dec 2020 20:50:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmocE-0003VC-Im for guix-patches@gnu.org; Tue, 08 Dec 2020 20:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmocE-0008IT-Gh for guix-patches@gnu.org; Tue, 08 Dec 2020 20:50:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45130] [PATCH] gnu: Add mtm. Resent-From: luhux Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Dec 2020 01:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45130@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160747856331837 (code B ref -1); Wed, 09 Dec 2020 01:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Dec 2020 01:49:23 +0000 Received: from localhost ([127.0.0.1]:60327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmobX-0008HM-O2 for submit@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 ) id 1kmobV-0008HF-QJ for submit@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 ) id 1kmobV-0006TI-EV for guix-patches@gnu.org; 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 ) id 1kmobR-0003EA-AY for guix-patches@gnu.org; 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 Message-ID: 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: 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@outlook.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 3.59 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=outlook.com header.s=selector1 header.b=MPMYlyhX; arc=reject (signature check failed: fail, {[1] = sig:microsoft.com:reject}); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2E68C940111 X-Spam-Score: 3.59 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: 4i4W3rTrj/bW >From 6f1a84e8b4feb3cc3c80095fe2aeec30d7862d9d Mon Sep 17 00:00:00 2001 From: luhux 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 ;;; Copyright © 2017 Alex Griffin ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice +;;; Copyright © 2020 luhux ;;; ;;; 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 . + (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