From unknown Tue Jun 17 01:50:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60567] [PATCH] gnu: Add ftxui Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Jan 2023 05:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60567 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60567@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167289735015930 (code B ref -1); Thu, 05 Jan 2023 05:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jan 2023 05:42:30 +0000 Received: from localhost ([127.0.0.1]:50019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJ1J-00048s-C8 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 00:42:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:35362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJ1G-00048i-Dn for submit@debbugs.gnu.org; Thu, 05 Jan 2023 00:42:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDJ1E-0005Vu-JV for guix-patches@gnu.org; Thu, 05 Jan 2023 00:42:26 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDJ1B-00023c-0M for guix-patches@gnu.org; Thu, 05 Jan 2023 00:42:23 -0500 Received: by mail-lf1-x129.google.com with SMTP id m6so43282979lfj.11 for ; Wed, 04 Jan 2023 21:42:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=wMrS7y44l0OuF35ud/UaV5olJWZqh0a2kXRHGDkf5AE=; b=nw11pIufVlRav3p7FUQPH19UGFcZaWT69vsze1O41fSfvIxqLIIgxQ41/ApmLnjdYL +3EuoIZEdtYwnXiVTsrbC/w6Q41l4Dh+YWiqRfLZyzC5OHHTJgfe/9ZklyMf/7BQXGHL SRzjBKfB//TajtDjKYskY05DS6y20ymg9mM/ox6KL0bsFAWGWUddnbC1wUxl3TKlU0W8 3++niYygJIFK6VkaS19Njdl0sO0wZOAEQHIUO9Q0RrPzZRpjrV6gQL82zz4vgHFK8/c2 HC5QFtQ0mB0cVW1VlrIV1hozb7DOV/uX6+0BT+H5H2+6tB2coQ2LbO3FmefNdfCLretZ 381Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wMrS7y44l0OuF35ud/UaV5olJWZqh0a2kXRHGDkf5AE=; b=Mp2AbOh5/tJdbROzxHozGI6c3T9JYt/nRsoeih7R93/ZV4RHQ7P7tm4eBoU1AmgBiI RrIO2fC5H5NwDnhODbdcG7Q3RJdBG6ot0G8RKfQFomcl7GeYAY6YAODXVMNF5s90KQ3E x8Wzc2n1INFVAOzWTwCSsXex+eBmJPxep2SalptiNOvVilrA0WGv4pxg5I1X3jBlozRZ LUpR3B2E0AmxdA7ycZqa4kHVDNBJjbIbam2haYRAVR1NBHl/P/zFIuYy5yf6J0SLIvV+ LmIkCqrcC4fUjJo7sn1MK3r2jo34wMQxEe7FFWLNG0UcspB8vIydoPAeOsliblS8lJR+ DIIA== X-Gm-Message-State: AFqh2kqlGIyqDeAOFCbBoE7Uz8D2Xoa47jOZZodIf7sAr1H1WgGakHVg P2X2db2mdWdaEfMX7+homnKpmtr/EwQ= X-Google-Smtp-Source: AMrXdXt+t4yrUe9W2Z/rXoinkBENfiSXLDVoPN2BB/01G0YN3khHEVKUuid6uPO73LzsxowqtfLxSw== X-Received: by 2002:ac2:43a4:0:b0:4cb:3a60:65cb with SMTP id t4-20020ac243a4000000b004cb3a6065cbmr2944816lfl.6.1672897333403; Wed, 04 Jan 2023 21:42:13 -0800 (PST) Received: from elephant ([95.79.5.207]) by smtp.gmail.com with ESMTPSA id q14-20020a056512210e00b004a2c447598fsm5358612lfr.159.2023.01.04.21.42.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 21:42:12 -0800 (PST) From: "Artyom V. Poptsov" Date: Thu, 05 Jan 2023 08:42:06 +0300 Message-ID: <87r0w9fsgh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_CSS_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, this patch adds FXTUI[1], a simple C++ library for terminal based user interfaces. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-ftxui.patch Content-Transfer-Encoding: quoted-printable From=203453ac53e0d1bfe28e5536a89411584fc2461e29 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 5 Jan 2023 08:03:15 +0300 Subject: [PATCH] gnu: Add ftxui * gnu/packages/tui.scm: New module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add "tui.scm". =2D-- gnu/local.mk | 1 + gnu/packages/tui.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gnu/packages/tui.scm diff --git a/gnu/local.mk b/gnu/local.mk index bc0309ee87..c110b54bef 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -605,6 +605,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/tmux.scm \ %D%/packages/toolkits.scm \ %D%/packages/tor.scm \ + %D%/packages/tui.scm \ %D%/packages/tv.scm \ %D%/packages/uglifyjs.scm \ %D%/packages/uml.scm \ diff --git a/gnu/packages/tui.scm b/gnu/packages/tui.scm new file mode 100644 index 0000000000..7a3037073b =2D-- /dev/null +++ b/gnu/packages/tui.scm @@ -0,0 +1,62 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2023 Artyom V. Poptsov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages tui) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) + #:use-module (guix gexp) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix build-system cmake) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages version-control)) + +(define-public ftxui + (package + (name "ftxui") + (version "3.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ArthurSonzogni/FTXUI") + (commit (string-append "v" version)))) + (sha256 + (base32 + "10a4yw2h29kixxyhll6cvrwyscsvz9asxry857a9l8nqvbhs946s")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f)) ;Tests require gtest + (home-page "https://github.com/ArthurSonzogni/FTXUI") + (synopsis "C++ Functional Terminal User Interface") + (description + "Functional Terminal (X) User interface (FTXUI) is a simple C++ libra= ry for +terminal based user interfaces. + +Main features: +@itemize +@item Functional style. +@item Keyboard & mouse navigation. +@item Support for UTF8 and fullwidth chars. +@item Support for animations. +@item Support for drawing. +@item No dependencies. +@end itemize") + (license license:expat))) =2D-=20 2.34.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I decided to place this package in a separate module called "tui.scm" as there are other libraries for building text-based user interfaces that can be added in the future (like [2], for example.) Also to check if the library installed right I tried to build "tiles" game[3] that is using FXTUI: =2D-8<---------------cut here---------------start------------->8--- git clone https://github.com/tusharpm/tiles.git cd tiles guix shell binutils gcc mkdir build cd build cmake .. make -j$(nproc) =2D-8<---------------cut here---------------end--------------->8--- Which worked out flawlessly. Thanks, =2D avp References: 1. https://github.com/ArthurSonzogni/FTXUI 2. https://github.com/gansm/finalcut 3. https://github.com/tusharpm/tiles =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmO2Yy4ZHHBvcHRzb3Yu YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigL3p4B/9F0LDO3jhDmelKJVz6Dthl q2mrIvJFwSfqjroze2RBdTSuovd5gxlzBxOp7w8L6GuprUxhfcgptKLod1BoDfeY lab7hj3UQ2S0mySfy55OBB2Ij1jS05E0452Y66DrqVaEI1kgdTS5hUuO9T567It5 PQwqCvgeb2X3V5EoclV0ky7ayLO+N+lDgAPt831lr1pVivZyk+kSgkzkzPZN2tYo 2BRyP/YbOeSFrlv2R04dqtvzxF/1KbWF48Dem6mb7DhWCMaL1DPtnlcSWIox4IaX gpbPAtWQ8LGAvSyh2icvVuI+d/GaCNiLEHDdqmhOZtlthw6kHeoDUrOBMk8AVmnM =PKyY -----END PGP SIGNATURE----- --==-=-=-- From unknown Tue Jun 17 01:50:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60567] [PATCH] gnu: Add ftxui Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Jan 2023 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60567 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Artyom V. Poptsov" Cc: 60567@debbugs.gnu.org Received: via spool by 60567-submit@debbugs.gnu.org id=B60567.16731975835546 (code B ref 60567); Sun, 08 Jan 2023 17:07:02 +0000 Received: (at 60567) by debbugs.gnu.org; 8 Jan 2023 17:06:23 +0000 Received: from localhost ([127.0.0.1]:34527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEZ7n-0001RO-Gs for submit@debbugs.gnu.org; Sun, 08 Jan 2023 12:06:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEZ7k-0001R9-2z for 60567@debbugs.gnu.org; Sun, 08 Jan 2023 12:06:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEZ7e-0002b8-KD; Sun, 08 Jan 2023 12:06:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=229A3YBgj661DAGE2mmevstCNzXEPq+64PF2VpQ9boA=; b=MeKMI/9jK8udAJKs2QRL pNWZiKg0hjAicckkq+xobVzb3pqbEEqU7n8fGAnAe4vIKrF/TTFA9ki8kUmResY2INbkx7csBfWG0 64HEyYiIFBjOrlGDV0G5erDUlchsqx6S4dlCVWkV/CpccWeX8bpE7mkG+ANSfHkGfRUJ06Z2e0ADX 9RU67gdzPpleiFPuD7fmG5+dNlIT0h0mTyb5t9AVYbbso5y4IG5vSHOk6ayFD2UHQjCbPnAGf5Xmc ly8VdK9LmN1N0cFitCWtk05oXMuAhHrkgo1q9fKiREYh47X9X7WlMRR1F4XUb9+ZDdTzBGIG2Db4R y1+nHC3WlHd94w==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEZ7S-00013Q-Mx; Sun, 08 Jan 2023 12:06:14 -0500 From: Mathieu Othacehe References: <87r0w9fsgh.fsf@gmail.com> Date: Sun, 08 Jan 2023 18:06:00 +0100 In-Reply-To: <87r0w9fsgh.fsf@gmail.com> (Artyom V. Poptsov's message of "Thu, 05 Jan 2023 08:42:06 +0300") Message-ID: <87358l2byf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Artyom, > +++ b/gnu/packages/tui.scm I'm not sure about the new tui module because a lot of packages could fall into that category, all ncurses based programs for instance. > + (arguments > + (list #:tests? #f)) ;Tests require gtest Providing googletest as a native-inputs doesn't help here? Thanks, Mathieu From unknown Tue Jun 17 01:50:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60567] [PATCH] gnu: Add ftxui Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Jan 2023 17:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60567 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 60567@debbugs.gnu.org Received: via spool by 60567-submit@debbugs.gnu.org id=B60567.167320020427599 (code B ref 60567); Sun, 08 Jan 2023 17:51:01 +0000 Received: (at 60567) by debbugs.gnu.org; 8 Jan 2023 17:50:04 +0000 Received: from localhost ([127.0.0.1]:34571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEZo3-0007B5-LE for submit@debbugs.gnu.org; Sun, 08 Jan 2023 12:50:04 -0500 Received: from mail-lf1-f51.google.com ([209.85.167.51]:42670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEZo1-0007AV-QR for 60567@debbugs.gnu.org; Sun, 08 Jan 2023 12:50:02 -0500 Received: by mail-lf1-f51.google.com with SMTP id y25so9643902lfa.9 for <60567@debbugs.gnu.org>; Sun, 08 Jan 2023 09:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=qviTg7IAiuM/XBKAqMaF1xWJnlAO8tR7XUqMQCaJ0c8=; b=Q10Ymkcf2s2O5V6dlGiR01EMVRIaib4ohZHkYqgBXv7SKEYu6aOhAWWwcnfXajpIa8 jIuh9ZmRPz0jpQa50sU/sNAisjEpDCxLYU2Tg7Nm+c0ZIk2EhNcFZcUrbJoftKuJset5 kQEd4JBHsVBnF8YZ+J63gYFwHU3SwW3Hi5rZVSt6sV14a5DaRGRUfedNpvtePapSN6bf 7HYYlJhB0RtjUiLcniOV9el0V9irnHIJ7uAspmyY6seAn9TPKJ8ML4uXQKqKBO0pnAKr vRNkgd0t8/QbPqRKe45XP+1NK+O8vSUeHBpF/Ab5sd+YON735/jeoSIkekSHPH/EH7PL 9eQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qviTg7IAiuM/XBKAqMaF1xWJnlAO8tR7XUqMQCaJ0c8=; b=4lZUy7zw4CjP0qGT5IUUl6nAoy75DW+9Q36eWJFeeT1Tz7vpP2Oh2M02G3iIQpXVo1 t2Rk63rV8ePh+veJX9mfMkJ5C5/xEmalICrtMPJ4w+pX4ZJ/V9x1G5CdHC91h+4XaXFV bgtGfOLIFMb4n8fNaToVw9LX71niSU/DyGmSLUjLtIeCxdvRg8Gul0txFvq/gdsHoSqC vqUOQm3/iqqIz2IG317YiohROgrIApkhfKDDp7okhcInzzRxh2+MHtrtKlRHqXYXkD1z ZHaNxwVhBtMDnY9EWiynMq00gzEOjbKs0c/IklVV4x0AEPRZfWlLuZO44i2JGE2GC5A/ tX6w== X-Gm-Message-State: AFqh2koamwJSYy1XawoD/x2QYiJSizk6Z+m493K6zJm8FkWPvN7EguEJ Y2dsBgeECGuucuEfXqQZZKKMjPl0Exo= X-Google-Smtp-Source: AMrXdXvsjzuB5cwazl1truWBpgkHELf5QieKIeakcmM8yoqR+OoEVIs0IqkiVCxU/KaN8c6W1FXKJA== X-Received: by 2002:a05:6512:3d9e:b0:4b5:5efe:966e with SMTP id k30-20020a0565123d9e00b004b55efe966emr22681667lfv.15.1673200195303; Sun, 08 Jan 2023 09:49:55 -0800 (PST) Received: from elephant ([95.79.5.207]) by smtp.gmail.com with ESMTPSA id v14-20020a05651203ae00b004b4b5da5f80sm1151289lfp.219.2023.01.08.09.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 09:49:54 -0800 (PST) From: "Artyom V. Poptsov" References: <87r0w9fsgh.fsf@gmail.com> <87358l2byf.fsf@gnu.org> Date: Sun, 08 Jan 2023 20:49:50 +0300 In-Reply-To: <87358l2byf.fsf@gnu.org> (Mathieu Othacehe's message of "Sun, 08 Jan 2023 18:06:00 +0100") Message-ID: <87a62svrup.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Mathieu! Thank you for the patch review. I fixed the patch, please find the updated version attached. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-ftxui.patch Content-Transfer-Encoding: quoted-printable From=20a996eaee955cd933ef963d397b745421d6c4f402 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 5 Jan 2023 08:03:15 +0300 Subject: [PATCH] gnu: Add ftxui. * gnu/packages/tui.scm: New module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add "tui.scm". =2D-- gnu/local.mk | 1 + gnu/packages/tui.scm | 79 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 gnu/packages/tui.scm diff --git a/gnu/local.mk b/gnu/local.mk index bc0309ee87..c110b54bef 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -605,6 +605,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/tmux.scm \ %D%/packages/toolkits.scm \ %D%/packages/tor.scm \ + %D%/packages/tui.scm \ %D%/packages/tv.scm \ %D%/packages/uglifyjs.scm \ %D%/packages/uml.scm \ diff --git a/gnu/packages/tui.scm b/gnu/packages/tui.scm new file mode 100644 index 0000000000..8a8f80addf =2D-- /dev/null +++ b/gnu/packages/tui.scm @@ -0,0 +1,79 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2023 Artyom V. Poptsov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages tui) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) + #:use-module (guix gexp) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix build-system cmake) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages check) + #:use-module (gnu packages version-control)) + +(define-public ftxui + (package + (name "ftxui") + (version "3.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ArthurSonzogni/FTXUI") + (commit (string-append "v" version)))) + (sha256 + (base32 + "10a4yw2h29kixxyhll6cvrwyscsvz9asxry857a9l8nqvbhs946s")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (native-inputs (list googletest)) + (arguments + (list #:configure-flags + #~(list "-DFTXUI_BUILD_TESTS:BOOL=3DON" + "-DFTXUI_BUILD_TESTS_FUZZER:BOOL=3DOFF") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake-tests + (lambda _ + (substitute* "cmake/ftxui_test.cmake" + (("NOT googletest_POPULATED") + "FALSE")) + ;; Disable benchmarks for a while as they require bundl= ed Google + ;; benchmark and when the 'googlebenchmark' is unbundle= d, there's + ;; a CMake configuration error. + (substitute* "cmake/ftxui_benchmark.cmake" + (("NOT WIN32") + "FALSE")))) ))) + (home-page "https://github.com/ArthurSonzogni/FTXUI") + (synopsis "C++ Functional Terminal User Interface") + (description + "Functional Terminal (X) User interface (FTXUI) is a simple C++ libra= ry for +terminal based user interfaces. + +Main features: +@itemize +@item Functional style. +@item Keyboard & mouse navigation. +@item Support for UTF8 and fullwidth chars. +@item Support for animations. +@item Support for drawing. +@item No dependencies. +@end itemize") + (license license:expat))) =2D-=20 2.34.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thanks, =2D avp =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmO7Aj4ZHHBvcHRzb3Yu YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigL+ZrB/wJd6wcGzmorDoYGZnWSGFr /O6BodclFy8bnGaKA6+0x0oOrvnQ44YRVB/OLEJDDAyO3bPooEYnPHnZOe+L1RMe BcM8ZLytp5eHT79PTr0u6DXU5bNC8t0aUeuHhTUDbUC7DkU6SBTq9N3c/99ECCVu hewzNUDZdlRheBhCozNHj4SoGiiiz2uKC9TKyK6ORujG4bsX1ow7uiFbqq1cYYGM jX8/eCAzsd9G2sqQynARKUal2UmoovXa2FRM/7m8/898WRoGcEsl1xWMpFJUsxIN W/y3uG97236oMW+oUST8RFkUMsxyJRJuvqnP4cG6DKKLNPF+YSHrlrkbjSmBTN48 =faLS -----END PGP SIGNATURE----- --==-=-=-- From unknown Tue Jun 17 01:50:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60567] [PATCH] gnu: Add ftxui Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Jan 2023 17:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60567 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 60567@debbugs.gnu.org Received: via spool by 60567-submit@debbugs.gnu.org id=B60567.167320039027875 (code B ref 60567); Sun, 08 Jan 2023 17:54:01 +0000 Received: (at 60567) by debbugs.gnu.org; 8 Jan 2023 17:53:10 +0000 Received: from localhost ([127.0.0.1]:34575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEZr4-0007FX-Dn for submit@debbugs.gnu.org; Sun, 08 Jan 2023 12:53:10 -0500 Received: from mail-lf1-f49.google.com ([209.85.167.49]:45023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEZr2-0007FI-Em for 60567@debbugs.gnu.org; Sun, 08 Jan 2023 12:53:08 -0500 Received: by mail-lf1-f49.google.com with SMTP id m6so9629323lfj.11 for <60567@debbugs.gnu.org>; Sun, 08 Jan 2023 09:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=oXHYTCt7LkAvpwCmAPBB5DgDSj6Kb9DwB37aI/N3PSI=; b=MXaMoiit1+uYSzDGpZ90j85wuu6SJLFmSSka7oG852mGkq+IWtdx7LkWV8sot5Coim u/Oy5QdcWqGgNuyT8B6VOAJwOWa4M6/HPz9jOAbAZr+90Corvxrz/CUUqIt4OEuYcnqY 32/olP+/cZNbqcbnRLGLCENAc7L9CpiuYTiZvWGu990+NgfDj9x2VUFVypzNY8UsQSyO W0cZBCZGf5oJ2DoWa3Pdm0iCw8iyTvZWytvOY8LrB9fGH6UBzNb87D+kka1Wy17V/5Gr O0pDb/BnYhTBJWPDEyr+nvj77iyT/e8973sXkGNLPJidyqYDJsAkg5ybsDJrxI8XyPI/ ROuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oXHYTCt7LkAvpwCmAPBB5DgDSj6Kb9DwB37aI/N3PSI=; b=H/DozN3C8jrSsiYq48CyhwRsBrmc7tZRVpYyrgVaezQ5j2GrZ41Hq/nzbUtGtYkXOr Z61cgK5ieYAVkuAEsxvHHPoc+OGvOrhJZpaD7vAWFTz9S3JfoRl1jVjBbdg7NE4pODJg W0FBRNdf0wetIkPvFDzruvU3IACEdhVoJYGa5lR7he+71AkDKIYnXi3pTHFddFf+kIs1 yYleK4DCZ1mONSANBcaYui78XzGA/PsdX63jD0n1O04JkRChQWYRgR1PUbovWcQEmrdb cnhg8AwTF8opvWNpZSr0mmfNXiRe4y0d0ajpvBT2KKo9+72YYClRptZG/U3pARozzL1J w2Yw== X-Gm-Message-State: AFqh2kolEDYmmsBSM14rlX6dGZmxAG3ha1So7SbPR00QqS+mdWSzeofS eV1HvMXzoV9OABRyvqC4pSb0jIci4Ko= X-Google-Smtp-Source: AMrXdXsd1o/8528IJRklM6/QPTnxWP7zMgZDnHeBpO5S7anLjoCyBNhs9feioLx20fVmrKQ2SkaV6g== X-Received: by 2002:a05:6512:22c3:b0:4b5:76a2:8ad4 with SMTP id g3-20020a05651222c300b004b576a28ad4mr19525768lfu.0.1673200380988; Sun, 08 Jan 2023 09:53:00 -0800 (PST) Received: from elephant ([95.79.5.207]) by smtp.gmail.com with ESMTPSA id c19-20020a056512075300b004b15bc0ff63sm1152407lfs.277.2023.01.08.09.53.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 09:53:00 -0800 (PST) From: "Artyom V. Poptsov" References: <87r0w9fsgh.fsf@gmail.com> <87358l2byf.fsf@gnu.org> Date: Sun, 08 Jan 2023 20:52:59 +0300 In-Reply-To: <87358l2byf.fsf@gnu.org> (Mathieu Othacehe's message of "Sun, 08 Jan 2023 18:06:00 +0100") Message-ID: <875ydgvrpg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > I'm not sure about the new tui module because a lot of packages could > fall into that category, all ncurses based programs for instance. I'm not sure about the new module either, but where would you put this package? =2D Artyom =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmO7AvsZHHBvcHRzb3Yu YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigLxzQB/0R4mqmJeGhBDmEPNdd3j+E bQDnjbcamBmo2/7FxvNyGfcnwfAZzs2IUAKYGd1/VP9HHGw+f2izYVCwfz6icP6v l6sL9WWXVaqAle8S27nU1c/Zwdl6D+Kx7NTSL+PeR34MpVlSVDJArvi0dQ0ryMo2 3x1JDRFTYoWlrGYc45FxltP/AL23lSeE2ZHxRBvFD4T0LDSmdAQEX+nNXOHW4sUg KyJqOBbO4kqT9aoojpOOk+34sab09+KNdYxQvpzy13BBI3NGS0CEkKqDaxb+onrj UeDLD7lp05cfxfRp2Z+/qTG3xENpnWvfY61UP+IQFopdvMSt6WSEtQcJcDml4q8b =FVTX -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Jun 17 01:50:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60567] [PATCH] gnu: Add ftxui Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Jan 2023 19:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60567 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 60567@debbugs.gnu.org Received: via spool by 60567-submit@debbugs.gnu.org id=B60567.167329416231080 (code B ref 60567); Mon, 09 Jan 2023 19:57:02 +0000 Received: (at 60567) by debbugs.gnu.org; 9 Jan 2023 19:56:02 +0000 Received: from localhost ([127.0.0.1]:38255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEyFV-000850-EF for submit@debbugs.gnu.org; Mon, 09 Jan 2023 14:56:01 -0500 Received: from mail-lf1-f54.google.com ([209.85.167.54]:37492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEyFT-00084h-HX for 60567@debbugs.gnu.org; Mon, 09 Jan 2023 14:56:00 -0500 Received: by mail-lf1-f54.google.com with SMTP id bu8so14730901lfb.4 for <60567@debbugs.gnu.org>; Mon, 09 Jan 2023 11:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xl1jBO4kA709U2JoxAM7UpfS/O0U2vxLYj1fj+rVBDA=; b=PxUPAQv2q/gQsv1ERM4SLb1BaKNtKLg0JD1m8ToGIjyBq/rJ3BxQX+q6t9f1JawJNk Y46k1cWprj6zz7h35+QKdkW//DO0Bkph3Qfi1kZ2i1PzDc01PsOhzPflS1cX5HvykvBk lAXuNj5CsIgpjntzdL0PBxRsdvrg6Q9TBpDX6A1RQTEOmF9cjvC+ZB5/J/+zRRJtqmZn JlbYqUTBjnLYon/tfDoU4ncnWTpwy1eBNHrrutxUeKR+OjMuigCwfxuizNtokHOX/X/7 1isTIzd3qb7Q1XzCiR4ARcEhIG+mrA+9BQUWvyin3RmzIbnN7+yQR2mn7XG2TKW9zxYR ofMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Xl1jBO4kA709U2JoxAM7UpfS/O0U2vxLYj1fj+rVBDA=; b=pQ5orPP5Ku2EPoNGoW9vcL+E/nveGhUNDAxN3E3htJ3ElnueCivq661Vuriw2aNGHX iABQEM3Gja6rxdFH13VojPqVlPq3eXK1hFxWuF8kdp/mO3pgm1LCkjHY4iVCPlYtzloH DfrdzRDkLAoApBHN7ECGIqzZQbm4CPU3JI/+tirCrsWACdV6RqUmKKjNqFT00iriyPV7 jEFlAc42gn2LSkvXdsSCd5VBtPi6LdhewhpVdgdgwek6jXq+38yd5sz9fL1DMGWqq/2t csBBfSgGTVltHiiKy/n5D5zXIki8Q7Hr3gSGa8QVzvrSbLvjYm5N2LFuLzq109NC7QNM fbkQ== X-Gm-Message-State: AFqh2kr6wl2eV/5u80wlFf8g2a6qqc45yS5PYYT0oF4XyZ+FEnhccfrE 91xYVx7pSme2gDu/LyzeePmqtjiNuU8= X-Google-Smtp-Source: AMrXdXtLhMsPPMZ17l4aE7oX71iQm411nCt6DRetZxwxdSUQuzkz1s9lGL6utD15MO5AlZo90QwpUg== X-Received: by 2002:ac2:530b:0:b0:4cc:7f8e:ca60 with SMTP id c11-20020ac2530b000000b004cc7f8eca60mr1532642lfh.53.1673294152959; Mon, 09 Jan 2023 11:55:52 -0800 (PST) Received: from elephant ([95.79.5.207]) by smtp.gmail.com with ESMTPSA id i6-20020ac25b46000000b004cb1b4634edsm1756014lfp.194.2023.01.09.11.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 11:55:52 -0800 (PST) From: "Artyom V. Poptsov" References: <87r0w9fsgh.fsf@gmail.com> <87358l2byf.fsf@gnu.org> Date: Mon, 09 Jan 2023 22:55:48 +0300 In-Reply-To: <87358l2byf.fsf@gnu.org> (Mathieu Othacehe's message of "Sun, 08 Jan 2023 18:06:00 +0100") Message-ID: <87y1qblby3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, I decided to move the FTXUI package to "cpp.scm" module as the library provides API mainly for C++ programs. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-ftxui.patch Content-Transfer-Encoding: quoted-printable From=2074c0a34861242b913ab90ad77af9bdd778562016 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 5 Jan 2023 08:03:15 +0300 Subject: [PATCH] gnu: Add ftxui. * gnu/packages/cpp.scm (ftxui): New variable. =2D-- gnu/packages/cpp.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index cc594e56c5..23ea05cf9e 100644 =2D-- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2343,3 +2343,52 @@ (define-public wdl @item And more. @end itemize") (license license:zlib)))) + +(define-public ftxui + (package + (name "ftxui") + (version "3.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ArthurSonzogni/FTXUI") + (commit (string-append "v" version)))) + (sha256 + (base32 + "10a4yw2h29kixxyhll6cvrwyscsvz9asxry857a9l8nqvbhs946s")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (native-inputs (list googletest)) + (arguments + (list #:configure-flags + #~(list "-DFTXUI_BUILD_TESTS:BOOL=3DON" + "-DFTXUI_BUILD_TESTS_FUZZER:BOOL=3DOFF") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake-tests + (lambda _ + (substitute* "cmake/ftxui_test.cmake" + (("NOT googletest_POPULATED") + "FALSE")) + ;; Disable benchmarks for a while as they require bundl= ed Google + ;; benchmark and when the 'googlebenchmark' is unbundle= d, there's + ;; a CMake configuration error. + (substitute* "cmake/ftxui_benchmark.cmake" + (("NOT WIN32") + "FALSE")))) ))) + (home-page "https://github.com/ArthurSonzogni/FTXUI") + (synopsis "C++ Functional Terminal User Interface") + (description + "Functional Terminal (X) User interface (FTXUI) is a simple C++ libra= ry for +terminal based user interfaces. + +Main features: +@itemize +@item Functional style. +@item Keyboard & mouse navigation. +@item Support for UTF8 and fullwidth chars. +@item Support for animations. +@item Support for drawing. +@item No dependencies. +@end itemize") + (license license:expat))) =2D-=20 2.34.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D Artyom =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmO8cUQZHHBvcHRzb3Yu YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigLxPrCAC2RWN4vOcgocVCvGmvEh6m nVfNAKKLg5W2+XtlIEFn6byv1Hj2zohZJZK5EjW8sDQd7yeAgU2ZP+1tQYl0LH2J cflb91O/fGGj/HdAt+vdec7sdushiSFagcMnswDxx6k0msYAhMMKnHuBnjbnTpXn 4ihzs6AVokCg7KdkDkne+ERhLC4g82R0b54aH4ol3m0PjaHxzB3qXdzuL8aRERxV fJM4BmpA1ZX409bU7tGOrduJIzVKcnJoLK4kaCqK1RSUaZble9E6+CUp8h5OUwAH /97OMIXWO5BspzKHnPqmzWBDCHlnSWq8bx+UTWc8r/ZtWoerEcN8NXbfjUKfQg9r =WxA/ -----END PGP SIGNATURE----- --==-=-=-- From unknown Tue Jun 17 01:50:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Artyom V. Poptsov" Subject: bug#60567: closed (Re: bug#60567: [PATCH] gnu: Add ftxui) Message-ID: References: <87cz7molcf.fsf@gnu.org> <87r0w9fsgh.fsf@gmail.com> X-Gnu-PR-Message: they-closed 60567 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 60567@debbugs.gnu.org Date: Tue, 10 Jan 2023 08:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1673338622-16863-1" This is a multi-part message in MIME format... ------------=_1673338622-16863-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60567: [PATCH] gnu: Add ftxui which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60567@debbugs.gnu.org. --=20 60567: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60567 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1673338622-16863-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 60567-done) by debbugs.gnu.org; 10 Jan 2023 08:17:00 +0000 Received: from localhost ([127.0.0.1]:38682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF9oa-0004Nf-0H for submit@debbugs.gnu.org; Tue, 10 Jan 2023 03:17:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF9oY-0004NK-8M for 60567-done@debbugs.gnu.org; Tue, 10 Jan 2023 03:16:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pF9oT-0002yO-19; Tue, 10 Jan 2023 03:16:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=xFRKt01Ja5oHCL+uPUu0e+IsQo0doB9rXRrPoBi42UQ=; b=ac2bjvcAUsEhS5yX7z4A cBEvI0yJUNFaVP9vwPfKqRfCKOxqEs4/VEFFhjzhya4mgAQGv1avXZouM48LagYiGHegJKd0vyT+I 87LZkk6zlir6MKg5tkRhXGcjl91nHnfDwfClvXIjCcaVm3UidaQHS7x1OjZY1R2qcFhw3rDCgRKV8 NMkYGnTLl4wbWoXlYdct9k7k7ldBxWjGJ2UuCjTo2cs2+CURgaDhoWtcPm4s07dxlpWcFV4VtMIKo xN9ot4bHkiAjW4IZAkZFl+bIGgud1fqgkKAWaIAH+laYueX0wutrdEe4c9htT6DY/rcBNvaj4OrZs 2GcH9MzVQtAz2Q==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pF9oQ-0004VS-Ug; Tue, 10 Jan 2023 03:16:52 -0500 From: Mathieu Othacehe To: "Artyom V. Poptsov" Subject: Re: bug#60567: [PATCH] gnu: Add ftxui References: <87r0w9fsgh.fsf@gmail.com> <87358l2byf.fsf@gnu.org> <87y1qblby3.fsf@gmail.com> Date: Tue, 10 Jan 2023 09:16:48 +0100 In-Reply-To: <87y1qblby3.fsf@gmail.com> (Artyom V. Poptsov's message of "Mon, 09 Jan 2023 22:55:48 +0300") Message-ID: <87cz7molcf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60567-done Cc: 60567-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hell Artyom, > I decided to move the FTXUI package to "cpp.scm" module as the library > provides API mainly for C++ programs. OK, thanks for the v2! Applied. Mathieu ------------=_1673338622-16863-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Jan 2023 05:42:30 +0000 Received: from localhost ([127.0.0.1]:50019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJ1J-00048s-C8 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 00:42:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:35362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJ1G-00048i-Dn for submit@debbugs.gnu.org; Thu, 05 Jan 2023 00:42:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDJ1E-0005Vu-JV for guix-patches@gnu.org; Thu, 05 Jan 2023 00:42:26 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDJ1B-00023c-0M for guix-patches@gnu.org; Thu, 05 Jan 2023 00:42:23 -0500 Received: by mail-lf1-x129.google.com with SMTP id m6so43282979lfj.11 for ; Wed, 04 Jan 2023 21:42:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=wMrS7y44l0OuF35ud/UaV5olJWZqh0a2kXRHGDkf5AE=; b=nw11pIufVlRav3p7FUQPH19UGFcZaWT69vsze1O41fSfvIxqLIIgxQ41/ApmLnjdYL +3EuoIZEdtYwnXiVTsrbC/w6Q41l4Dh+YWiqRfLZyzC5OHHTJgfe/9ZklyMf/7BQXGHL SRzjBKfB//TajtDjKYskY05DS6y20ymg9mM/ox6KL0bsFAWGWUddnbC1wUxl3TKlU0W8 3++niYygJIFK6VkaS19Njdl0sO0wZOAEQHIUO9Q0RrPzZRpjrV6gQL82zz4vgHFK8/c2 HC5QFtQ0mB0cVW1VlrIV1hozb7DOV/uX6+0BT+H5H2+6tB2coQ2LbO3FmefNdfCLretZ 381Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wMrS7y44l0OuF35ud/UaV5olJWZqh0a2kXRHGDkf5AE=; b=Mp2AbOh5/tJdbROzxHozGI6c3T9JYt/nRsoeih7R93/ZV4RHQ7P7tm4eBoU1AmgBiI RrIO2fC5H5NwDnhODbdcG7Q3RJdBG6ot0G8RKfQFomcl7GeYAY6YAODXVMNF5s90KQ3E x8Wzc2n1INFVAOzWTwCSsXex+eBmJPxep2SalptiNOvVilrA0WGv4pxg5I1X3jBlozRZ LUpR3B2E0AmxdA7ycZqa4kHVDNBJjbIbam2haYRAVR1NBHl/P/zFIuYy5yf6J0SLIvV+ LmIkCqrcC4fUjJo7sn1MK3r2jo34wMQxEe7FFWLNG0UcspB8vIydoPAeOsliblS8lJR+ DIIA== X-Gm-Message-State: AFqh2kqlGIyqDeAOFCbBoE7Uz8D2Xoa47jOZZodIf7sAr1H1WgGakHVg P2X2db2mdWdaEfMX7+homnKpmtr/EwQ= X-Google-Smtp-Source: AMrXdXt+t4yrUe9W2Z/rXoinkBENfiSXLDVoPN2BB/01G0YN3khHEVKUuid6uPO73LzsxowqtfLxSw== X-Received: by 2002:ac2:43a4:0:b0:4cb:3a60:65cb with SMTP id t4-20020ac243a4000000b004cb3a6065cbmr2944816lfl.6.1672897333403; Wed, 04 Jan 2023 21:42:13 -0800 (PST) Received: from elephant ([95.79.5.207]) by smtp.gmail.com with ESMTPSA id q14-20020a056512210e00b004a2c447598fsm5358612lfr.159.2023.01.04.21.42.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 21:42:12 -0800 (PST) From: "Artyom V. Poptsov" To: guix-patches@gnu.org Subject: [PATCH] gnu: Add ftxui Date: Thu, 05 Jan 2023 08:42:06 +0300 Message-ID: <87r0w9fsgh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_CSS_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, this patch adds FXTUI[1], a simple C++ library for terminal based user interfaces. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-ftxui.patch Content-Transfer-Encoding: quoted-printable From=203453ac53e0d1bfe28e5536a89411584fc2461e29 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 5 Jan 2023 08:03:15 +0300 Subject: [PATCH] gnu: Add ftxui * gnu/packages/tui.scm: New module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add "tui.scm". =2D-- gnu/local.mk | 1 + gnu/packages/tui.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gnu/packages/tui.scm diff --git a/gnu/local.mk b/gnu/local.mk index bc0309ee87..c110b54bef 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -605,6 +605,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/tmux.scm \ %D%/packages/toolkits.scm \ %D%/packages/tor.scm \ + %D%/packages/tui.scm \ %D%/packages/tv.scm \ %D%/packages/uglifyjs.scm \ %D%/packages/uml.scm \ diff --git a/gnu/packages/tui.scm b/gnu/packages/tui.scm new file mode 100644 index 0000000000..7a3037073b =2D-- /dev/null +++ b/gnu/packages/tui.scm @@ -0,0 +1,62 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2023 Artyom V. Poptsov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages tui) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) + #:use-module (guix gexp) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix build-system cmake) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages version-control)) + +(define-public ftxui + (package + (name "ftxui") + (version "3.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ArthurSonzogni/FTXUI") + (commit (string-append "v" version)))) + (sha256 + (base32 + "10a4yw2h29kixxyhll6cvrwyscsvz9asxry857a9l8nqvbhs946s")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f)) ;Tests require gtest + (home-page "https://github.com/ArthurSonzogni/FTXUI") + (synopsis "C++ Functional Terminal User Interface") + (description + "Functional Terminal (X) User interface (FTXUI) is a simple C++ libra= ry for +terminal based user interfaces. + +Main features: +@itemize +@item Functional style. +@item Keyboard & mouse navigation. +@item Support for UTF8 and fullwidth chars. +@item Support for animations. +@item Support for drawing. +@item No dependencies. +@end itemize") + (license license:expat))) =2D-=20 2.34.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I decided to place this package in a separate module called "tui.scm" as there are other libraries for building text-based user interfaces that can be added in the future (like [2], for example.) Also to check if the library installed right I tried to build "tiles" game[3] that is using FXTUI: =2D-8<---------------cut here---------------start------------->8--- git clone https://github.com/tusharpm/tiles.git cd tiles guix shell binutils gcc mkdir build cd build cmake .. make -j$(nproc) =2D-8<---------------cut here---------------end--------------->8--- Which worked out flawlessly. Thanks, =2D avp References: 1. https://github.com/ArthurSonzogni/FTXUI 2. https://github.com/gansm/finalcut 3. https://github.com/tusharpm/tiles =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmO2Yy4ZHHBvcHRzb3Yu YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigL3p4B/9F0LDO3jhDmelKJVz6Dthl q2mrIvJFwSfqjroze2RBdTSuovd5gxlzBxOp7w8L6GuprUxhfcgptKLod1BoDfeY lab7hj3UQ2S0mySfy55OBB2Ij1jS05E0452Y66DrqVaEI1kgdTS5hUuO9T567It5 PQwqCvgeb2X3V5EoclV0ky7ayLO+N+lDgAPt831lr1pVivZyk+kSgkzkzPZN2tYo 2BRyP/YbOeSFrlv2R04dqtvzxF/1KbWF48Dem6mb7DhWCMaL1DPtnlcSWIox4IaX gpbPAtWQ8LGAvSyh2icvVuI+d/GaCNiLEHDdqmhOZtlthw6kHeoDUrOBMk8AVmnM =PKyY -----END PGP SIGNATURE----- --==-=-=-- ------------=_1673338622-16863-1-- From unknown Tue Jun 17 01:50:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60567] [PATCH] gnu: Add ftxui Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Jan 2023 09:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60567 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Artyom V. Poptsov" Cc: 60567@debbugs.gnu.org Received: via spool by 60567-submit@debbugs.gnu.org id=B60567.167334457112362 (code B ref 60567); Tue, 10 Jan 2023 09:57:02 +0000 Received: (at 60567) by debbugs.gnu.org; 10 Jan 2023 09:56:11 +0000 Received: from localhost ([127.0.0.1]:38820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFBMZ-0003DI-FU for submit@debbugs.gnu.org; Tue, 10 Jan 2023 04:56:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFBMX-0003D3-5M for 60567@debbugs.gnu.org; Tue, 10 Jan 2023 04:56:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFBMR-0004D7-RI; Tue, 10 Jan 2023 04:56:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=5ol0W3QDe0D2WqNWOrcOq8Tfqzfr84ZQGfPECxBCtJs=; b=FWDqXMz8pfT9TUivaEJm UJn6Chs3/LRIMBuROzXzOPqQ31UtrGngFsyfVawKypY8Gd53muzf/+vXZB/l1HqcNBSxAeRpcJsAb 92JZBsgIB3wetFM2KqZ9ilyn2h4TYtKLNbIRfbBR88FU/+RUh6BXDsxBqHX7/NNiktm/TyL6kcZyl GrizoVXeTK7ahs9ZRDUOs5y8Hz8y7Dv5O5RBPTd8Ui95Tcn57x1ddkEQ+e5N8/JH7Z+VJZgGI+tx7 N8UbL1TySVJTN3KG8S47G1VKtmlrZj8Cbap/mAlAZsCtPNxRDHGztWsnfzgt1H+TZV0gyPEb+PLYR h06du+RlkHWWRw==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFBMQ-0006hG-09; Tue, 10 Jan 2023 04:56:03 -0500 From: Mathieu Othacehe References: <87r0w9fsgh.fsf@gmail.com> <87358l2byf.fsf@gnu.org> <87y1qblby3.fsf@gmail.com> Date: Tue, 10 Jan 2023 10:55:58 +0100 In-Reply-To: <87y1qblby3.fsf@gmail.com> (Artyom V. Poptsov's message of "Mon, 09 Jan 2023 22:55:48 +0300") Message-ID: <878riaogr5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey Artyom, I noticed that the package is failing on non-x86_64 architectures: https://ci.guix.gnu.org/eval/104402?status=failed. Could you please have a look? Thanks, Mathieu