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 mLF2K9xvpWHbJQEAgWs5BA (envelope-from ) for ; Tue, 30 Nov 2021 01:27:08 +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 4NQeJ9xvpWGmAgAAB5/wlQ (envelope-from ) for ; Tue, 30 Nov 2021 00:27:08 +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 545B613484 for ; Tue, 30 Nov 2021 01:27:08 +0100 (CET) Received: from localhost ([::1]:52594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrqzD-0000O3-Fn for larch@yhetil.org; Mon, 29 Nov 2021 19:27:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrqz8-0000Nj-Aw for guix-patches@gnu.org; Mon, 29 Nov 2021 19:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrqz8-0002vm-1a for guix-patches@gnu.org; Mon, 29 Nov 2021 19:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrqz7-0006fR-TM for guix-patches@gnu.org; Mon, 29 Nov 2021 19:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52189] [PATCH] gnu: Add notcurses Resent-From: Blake Shaw Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Nov 2021 00:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52189 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52189@debbugs.gnu.org Cc: Blake Shaw X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163823200225593 (code B ref -1); Tue, 30 Nov 2021 00:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Nov 2021 00:26:42 +0000 Received: from localhost ([127.0.0.1]:39818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrqyo-0006ej-FV for submit@debbugs.gnu.org; Mon, 29 Nov 2021 19:26:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:54212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrqxs-0006d1-UV for submit@debbugs.gnu.org; Mon, 29 Nov 2021 19:25:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrqxs-0000Dg-PI for guix-patches@gnu.org; Mon, 29 Nov 2021 19:25:44 -0500 Received: from out2.migadu.com ([188.165.223.204]:43239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrqxo-0002kd-MG for guix-patches@gnu.org; Mon, 29 Nov 2021 19:25:44 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nonconstructivism.com; s=key1; t=1638231935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UOTPXTO3tXEobN9BzQ/NrnrwaLQA23ud0CH0+G1LspM=; b=XrXSOPoWGk16q9eKKoqSyguAcpzmuRdkIJ4qEUzcBfrPBUC5ORc5dSno4XisuXYSGrVnY0 Cegg2lwZFHjL4CIBCfVUy81srNn6Ylds3Xf0w/BUi3qX0tL0hJ2Zad1JrrKFNoS/EDwrVS Z6JClijr92MYlg02rsKXV6twnpyYc0g= Date: Tue, 30 Nov 2021 07:24:54 +0700 Message-Id: <6a6031ead6f9f61bc8eed976374638089efdaf3f.1638231894.git.blake@nonconstructivism.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=188.165.223.204; envelope-from=blake@nonconstructivism.com; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 29 Nov 2021 19:26:41 -0500 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: Blake Shaw X-ACL-Warn: , Blake Shaw via Guix-patches From: Blake Shaw via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638232028; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=UOTPXTO3tXEobN9BzQ/NrnrwaLQA23ud0CH0+G1LspM=; b=BgtKwPs1X4NqGSQpG0T++ZxGlLbcw1TUbr4/4pop3/Bbzv2KOC6VG60oKGg80walqS7zYu GmetqBLjUH2RFxQiMjGcBTdPy7tysNXpfkSEAaO6WgrYyWtLQAKl4GiSZ6d4TKTmpEnflA tsS8DNdIwig6N++syaTbQfZMRWItb3x5rr7Wh+HM0XfymkGsufGVmEebQtvu7ZLQ8kmHxD o/fz6op69K3Eq9/OXwXVGpUhqwcNRVV58UZ20kUz1sbTUPxEee5SALjo+8/thpC963cThn 1W7Ul0GsP9tuyeCGirw0Wktk0Rnb59hdeHvcLTNn2k0vzfiVQQvOD93DYChXrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638232028; a=rsa-sha256; cv=none; b=BYv4dp7kBvwcrfjx0q4XAyGJKM4V4jxjdosQ5Byt8aBCa1fXUS+2pHrBB1cXLNF2uINfYB sPQ7JZM8Fy5aOSUlg2A+/fKO5M7gq1LQbx/mf2sHWymTXbbgQytQRs38u0/kBeO/gh9Og7 c2zGKESUEA7UQtPiFCsCGVhw+mS9SXr9eMmHPtTUh5NQAvy+YigyjnL6ceIDLtnkgYcsM4 lDmUAW7LBnkUD0ZTf2d3/9UkpZ0YKRdp/TvV75nGuwEHLkuOeoFVXKDid3QEzXZAJG6YDK 5Opq6NZ31T/M+IaC+YKhEx/+ul2E61ybb7Am7AbGrCMkiXqHkv3Yl5wyHQvxCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nonconstructivism.com header.s=key1 header.b=XrXSOPoW; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nonconstructivism.com header.s=key1 header.b=XrXSOPoW; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 545B613484 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: IcAoYMGQ74rB --- gnu/packages/notcurses.scm | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 gnu/packages/notcurses.scm diff --git a/gnu/packages/notcurses.scm b/gnu/packages/notcurses.scm new file mode 100644 index 0000000000..898903628c --- /dev/null +++ b/gnu/packages/notcurses.scm @@ -0,0 +1,71 @@ +(define-module (gnu packages notcurses) + #:use-module (guix utils) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix build utils) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages gcc) + #:use-module (gnu packages video) + #:use-module (gnu packages ncurses) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages compression) + #:use-module (gnu packages libunistring) + #:use-module (ice-9 match)) + +(define-public notcurses + (let ((commit "d15eb6003cbd65f11163916261cf6cd5600c77fa")) + (package + (name "notcurses") + (version "2.4.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dankamongmen/notcurses") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "10jf6iai1r0xafrgaz978y9bqlaw1gvd11gc0yynwwp6rcs97g17")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:build-type "-DVAR=val" + #:make-flags + (list + (string-append "prefix=" + (assoc-ref %outputs "out")) + "CC=gcc") + #:configure-flags + (map (lambda (s) + (string-append "-D" s)) + '("USE_CPP=off" "USE_COVERAGE=off" + "USE_DOXYGEN=off" "USE_DOCTEST=off" + "USE_GPM=off" "USE_MULTIMEDIA=ffmpeg" + "USE_PANDOC=off" "FSG_BUILD=ON")) + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-makefile-shell + (lambda _ + (setenv "HOME" "/tmp"))) + (add-before 'build 'set-prefix-in-makefile + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "Makefile" + (("PREFIX =.*") + (string-append "PREFIX = " out "\n"))) + #true)))))) + (native-inputs + `(("ncurses" ,ncurses) + ("gcc-toolchain" ,gcc-10) + ("pkg-config" ,pkg-config))) + (inputs + `(("zlib" ,zlib) + ("ffmpeg" ,ffmpeg) + ("libunistring" ,libunistring))) + (synopsis "Not-ncurses: A library facilitating complex TUIs on modern terminals") + (description "Supporting vivid colors, multimedia, threads, & Unicode to the max.") + (home-page "https://notcurses.com/html/") + (license license:asl2.0)))) -- 2.33.1