From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id INPsEJ9xvGMFbQAAbAwnHQ (envelope-from ) for ; Mon, 09 Jan 2023 20:57:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ECXEEJ9xvGO/IgEAauVa8A (envelope-from ) for ; Mon, 09 Jan 2023 20:57:19 +0100 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 BBD74B0F7 for ; Mon, 9 Jan 2023 20:57:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEyGW-0000jp-RR; Mon, 09 Jan 2023 14:57:04 -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 1pEyGU-0000j6-JX for guix-patches@gnu.org; Mon, 09 Jan 2023 14:57:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEyGU-0000G2-BI for guix-patches@gnu.org; Mon, 09 Jan 2023 14:57:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEyGU-00086k-1b for guix-patches@gnu.org; Mon, 09 Jan 2023 14:57:02 -0500 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-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673294238; a=rsa-sha256; cv=none; b=dKOqVOkW9JEbmum2UY2HQjZ3nTRwEQ30hr08Z9LnEdRmYS1mNHqn+mRC1uzzyPIC0DUt3s vfRswQpsph9FUrWTxmM1h2jo4QK4mOjg/SH1ARDHwAZucaxaO/ghTCMIADKppNDo3CVOso NSTb/txIYKmEy47ovxMG2jgnFowi5O8dsocuZ+OXCbUURQnXJ+1ciEnUbWpDm/38HefGdD 04/pM3NKYOb1e6VHprmXWgIMpxhU5bNzyoPnw0hL9SlZjgGHIXQ7cui8tUSOx93jmZmVN6 +e+DkEgPSEMIlncvYYfm6uViFHVhtYTRhTvluhihOXEW01XETz3DtV4COL0CxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PxUPAQv2; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673294238; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=Xl1jBO4kA709U2JoxAM7UpfS/O0U2vxLYj1fj+rVBDA=; b=eJRBh7VlXmAablTeXhMm1Tq0335fZ0lR82Tg3Akupj7qtvE41WKcPKv64xuhabIoPNFpnU FY+YgUh+IshSUr4RwS1JbhHnr9Z++lL/9Cm5dHRsJ0o35Cla6wSc4focz4FpcpZuny+g63 XeQXl73h4k5pVQ0o4j93p2Xw2qSodzFveXlhFJ0t2REI1XSJsK3xR6ioW61jNhqXTDZ/lE beJL4s5hxuKnBaDTiQvDk+IfEgqV37NglTxLfimmydxutY/UQgsxXS8sVjP+iFvegT9U5n 3Qn5IidwryZ37K4SXaDyT/jBmYAxp+ddg581LDZrADtLHGh3RbG46cTaZbtmRg== X-Migadu-Spam-Score: -4.08 X-Spam-Score: -4.08 X-Migadu-Queue-Id: BBD74B0F7 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PxUPAQv2; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: 0k3nhTT7efHD --==-=-= 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----- --==-=-=--