From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uLwNLaI11GM9AwAAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 21:35:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WObfLKI11GOurgAAauVa8A (envelope-from ) for ; Fri, 27 Jan 2023 21:35:46 +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 91BB72FAD9 for ; Fri, 27 Jan 2023 21:35:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLVRE-0006tv-3S; Fri, 27 Jan 2023 15:35:08 -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 1pLVRB-0006si-1G for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:05 -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 1pLVRA-0004k7-Kf for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLVRA-0006P9-GV for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60695] [PATCH v2 1/9] gnu: Add implot. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 Jan 2023 20:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60695 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60695@debbugs.gnu.org Received: via spool by 60695-submit@debbugs.gnu.org id=B60695.167485169724547 (code B ref 60695); Fri, 27 Jan 2023 20:35:04 +0000 Received: (at 60695) by debbugs.gnu.org; 27 Jan 2023 20:34:57 +0000 Received: from localhost ([127.0.0.1]:38593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLVR3-0006Nk-1B for submit@debbugs.gnu.org; Fri, 27 Jan 2023 15:34:57 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:56700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLVQq-0006Lx-3o for 60695@debbugs.gnu.org; Fri, 27 Jan 2023 15:34:45 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 6ACA5E8521 for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hxAr83cfc9S2 for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:36 +0000 (UTC) Received: from localhost.localdomain (23-233-96-72.cpe.pppoe.ca [23.233.96.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 6CDF4E850F for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:36 +0000 (UTC) From: Simon South Date: Fri, 27 Jan 2023 15:34:26 -0500 Message-Id: X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674851746; h=from:from:sender:sender: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; bh=lnGRiclDdpchLOq+NQTEccnRqeqKNjA65umQVlziSEY=; b=SN5BLVA7gH1vg2sZXd+vfgub0N8/FXwl4+kY4cublccxXPMnbu5fEdu5kVxe+NChV0uGn1 0p/edpB9dXfa8uHQ+ZCBNRjbb0is0b/U5Emg5tlbL6STkANeIvYHlf5e+hJD8Vgwnc4xyY WMUniq3D6YpkFV3//c0hteqwlDvK6MHz9slH+KmhgZe+89mrSWp6R9HY6kr49Ur5vQdkSi Fw/fbKbiqJdLa0A6Wm9GKX/eHeN9tj9ARq20mR0x1DMrg6yuu7YMHttbUf5Y+grt/xIZs6 qgrQxUA5G2wSPA8JzCZLDrtECBjvG3EKxKKrSuKdF36NOXQ/EaBU2QwZ/oPOKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674851746; a=rsa-sha256; cv=none; b=X18QhEn0+3P4BkM9zNNNuwLZiCjvI3T9dFW0lK88pKslnd626n7Nzp4DSEQVLPoKpIAUW+ C8SRa/rVRIF2DeF7XglvA5OrXDQSSs7cSDHDCohDJYdP7htkiLDFOpJc95ZC4+ocVfrBAO BjhGV25ENsgAktasdFd7Q8Uh2IXi9RChsZhYDXRWk4AZedd+64EzKfQook7vyEtG2TrhwB wFgmps+/aorZiuHRYJOuJy+MWXPoEnMFOyqC/8LeMdlCpCZbKMzR2H1FcpfUfpscwxwfL1 jNfgCxuvknMp/7ssYK03xjbPKgSGbyYPlf4038SstxErtcv8GIOdDyErsBemPg== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.67 X-Spam-Score: -1.67 X-Migadu-Queue-Id: 91BB72FAD9 X-TUID: JWbGSZ616hO1 * gnu/packages/toolkits.scm (implot): New variable. --- gnu/packages/toolkits.scm | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/toolkits.scm b/gnu/packages/toolkits.scm index 3030e3aa49..81de853572 100644 --- a/gnu/packages/toolkits.scm +++ b/gnu/packages/toolkits.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2020, 2022 Tobias Geerinckx-Rice ;;; Copyright © 2022 John Kehayias +;;; Copyright © 2023 Simon South ;;; ;;; This file is part of GNU Guix. ;;; @@ -141,3 +142,52 @@ (define-public imgui-1.86 (sha256 (base32 "02a7b05zrka20jhzag2jb4jl624i1m456bsv69jb9zgys2p9dv1n")))))) + +(define-public implot + (package + (name "implot") + (version "0.14") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/epezent/implot") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kp0h5s9dh7380yink5f091ss5cwfj321n6ym87j4skcp0giiym6")))) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (delete 'bootstrap) + (delete 'configure) + (replace 'build + ;; Build a shared library from the source code. + (lambda* (#:key inputs #:allow-other-keys) + (invoke #$(cc-for-target) "-I" (getcwd) + "-I" (search-input-directory inputs "include/imgui") + "-g" "-O2" "-fPIC" "-shared" + "-o" "libimplot.so" + "implot.cpp" + "implot_items.cpp"))) + (replace 'install + ;; Copy the library and header files to the output. + (lambda _ + (install-file "libimplot.so" (string-append #$output "/lib")) + (for-each (lambda (file-name) + (install-file file-name + (string-append #$output + "/include/implot"))) + '("implot.h" "implot_internal.h"))))) + #:tests? #f)) ; no test suite + (inputs + (list imgui)) + (home-page "https://github.com/epezent/implot") + (synopsis "Immediate-mode C++ plotting library for ImGui") + (description "ImPlot is an immediate-mode, GPU-accelerated plotting +library in C++ for the ImGui GUI library, suitable for creating real-time +visualizations or interactive plots. Like ImGui, ImPlot is self-contained and +requires only minimal code to integrate with existing applications.") + (license license:expat))) -- 2.38.1