From patchwork Wed Nov 3 14:53:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34228 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C269927BBE3; Wed, 3 Nov 2021 14:56:55 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5FD2827BBE1 for ; Wed, 3 Nov 2021 14:56:55 +0000 (GMT) Received: from localhost ([::1]:53470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miHh8-0007o5-Er for patchwork@mira.cbaines.net; Wed, 03 Nov 2021 10:56:54 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi, here's updated version of the patch where the version uses newest tag instead of commit. Otherwise LGTM. --8<---------------cut here---------------start------------->8--- Subject: [PATCH v2] gnu: Add mtm. * gnu/packages/suckless.scm (mtm): New variable. --- 2.33.1 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 © 2016 Eric Bavier ;;; Copyright © 2017 Alex Griffin ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice +;;; Copyright @ 2020 luhux ;;; Copyright © 2021 Raghav Gururajan ;;; Copyright © 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=" ,(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 + "This package provides multiplexer for the terminal focused on simplicity, +compatibility, size and stability.") + (license license:gpl3+) + (home-page "https://github.com/deadpixi/mtm"))) + (define-public human (package (name "human")