From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oEG0LRyjgmErkgAAgWs5BA (envelope-from ) for ; Wed, 03 Nov 2021 15:56:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qLZeKRyjgmGKRwAAB5/wlQ (envelope-from ) for ; Wed, 03 Nov 2021 14:56:28 +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 33F8C1A9D1 for ; Wed, 3 Nov 2021 15:56:28 +0100 (CET) Received: from localhost ([::1]:53470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miHgg-0007o5-1T for larch@yhetil.org; Wed, 03 Nov 2021 10:56:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miHeM-0003rh-8W for guix-patches@gnu.org; Wed, 03 Nov 2021 10:54:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miHeM-0004gj-0U for guix-patches@gnu.org; Wed, 03 Nov 2021 10:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1miHeL-0003QR-QN for guix-patches@gnu.org; Wed, 03 Nov 2021 10:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#45130] [PATCH] gnu: Add mtm. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Nov 2021 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "45130@debbugs.gnu.org" <45130@debbugs.gnu.org> Received: via spool by 45130-submit@debbugs.gnu.org id=B45130.163595119713108 (code B ref 45130); Wed, 03 Nov 2021 14:54:01 +0000 Received: (at 45130) by debbugs.gnu.org; 3 Nov 2021 14:53:17 +0000 Received: from localhost ([127.0.0.1]:40875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miHdY-0003PE-4b for submit@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 ) id 1miHdV-0003Oy-46 for 45130@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= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635951388; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7f937UuLRMOvfCbbbnhlZiCwl97ieWz2lsJdlcOYFqo=; b=Bq14TVw7Qh8t3BoNdkc7XYSFXzoRYIblca4zkVj3v4t3C6XvT/9PnBaN+5rf1LjgQi91V7 V4MYwkcyMIv8xYAhhE2+qyuwX7aprrrF0S/3EMY86pkts3Q0yjdMSdl5+f4ZZg5B9pHy2v l4gzFGv7aVHxoMA6LXmFfY8fLqXm2Dr1IrkH6ID0ClMV9Ne9KCK/N8j4dKyOLYfbOZdHBH iPlhOj+1HeizlpFtaZaUxFHWyOuyMaijSA+o92BW7K5S6kKuNw5ltW80/S2vSY6WGvLmYd AyZcqpixlR+QCF20XFZvf3rxw4GbPV5AtByCk0xHOktOZV0JnbEQLAi6OFyV0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635951388; a=rsa-sha256; cv=none; b=NMf4epltpJqkP34EN8lMiSXhbnbY9LFNZFuEMvKp6uuNUfiSuPerpYRYUe8IzEqYk48NBV eOxPyCV1r1Pmo99iiO2YCSuScQUpZvbVZz4e9jMhFE64lcE4b53JkTt7piccUJnnmkrVdD o5Jm6tsSKalcP1lOIfauaF2fYzRvuGy8xRd4O96X3QcYWQQnWrMB0RvBKxlaDFecmH+OoS wAfFgCiWSrbgUUg72fk5h/kXXt+WCF8AHVYJKD9SEa9VkmiEK5UKVLTaHXarjAAeXocFHF 74dw2ujnxMmbmaZVUsSediQJyMIPLalAwRaMYYE6y5llyEy+/6yrOpr1tbscrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=MbreYIVG; dmarc=pass (policy=none) header.from=gnu.org; 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-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=MbreYIVG; dmarc=pass (policy=none) header.from=gnu.org; 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: 33F8C1A9D1 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: ONHs+JqXS5A6 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 ;;; Copyright =C2=A9 2017 Alex Griffin ;;; Copyright =C2=A9 2018=E2=80=932021 Tobias Geerinckx-Rice +;;; Copyright @ 2020 luhux ;;; Copyright =C2=A9 2021 Raghav Gururajan ;;; Copyright =C2=A9 2021 Alexandru-Sergiu Marton ;;; @@ -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 . + (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