From patchwork Sat Aug 6 22:57:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 41318 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 A61E827BBEA; Sat, 6 Aug 2022 23:59:33 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1E83D27BBE9 for ; Sat, 6 Aug 2022 23:59:33 +0100 (BST) Received: from localhost ([::1]:37882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKSlY-0004FV-9D for patchwork@mira.cbaines.net; Sat, 06 Aug 2022 18:59:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKSl5-0003wu-8A for guix-patches@gnu.org; Sat, 06 Aug 2022 18:59:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKSl5-00023c-0Q for guix-patches@gnu.org; Sat, 06 Aug 2022 18:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKSl4-000083-Sk for guix-patches@gnu.org; Sat, 06 Aug 2022 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56576] [PATCH 2/2] gnu: Add nuklear. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Aug 2022 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56576@debbugs.gnu.org Cc: Antero Mejr , iyzsong@envs.net Received: via spool by 56576-submit@debbugs.gnu.org id=B56576.1659826706446 (code B ref 56576); Sat, 06 Aug 2022 22:59:02 +0000 Received: (at 56576) by debbugs.gnu.org; 6 Aug 2022 22:58:26 +0000 Received: from localhost ([127.0.0.1]:35572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKSkT-000077-VR for submit@debbugs.gnu.org; Sat, 06 Aug 2022 18:58:26 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:47482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKSkR-00006m-Ht for 56576@debbugs.gnu.org; Sat, 06 Aug 2022 18:58:25 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4M0dD927fDz9sQY; Sun, 7 Aug 2022 00:58:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1659826697; 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: in-reply-to:in-reply-to:references:references; bh=96mA1UgOdSt+967ZlVcodhMK/eyBg10s5fRrFsXJa9s=; b=Ow1Ck3huP2lmST6fy0nmReUp/UoWRr0m2CCem9I59GuBtA009D5P201nPOnOzBl9sZY+zk /7L2JnibwUXyljR2DvjN+XQ8XIs8M+ZuW8QeusRW0vo0s/IxhObt8tmJvbhhz8s/oHJFTN DE5qTwhaEJRwWOl4rT9Fk/rv5LFVfbYlz6ufQWdboYCwqyMQ8UZSrlBlowHWBGvCxr4ePl jgVKGb/XSyr/mKpeXtVukqCXiwq5MON5I7ouAR5UUyD2ypycX8HZNyyUyL8qEz7wgg77pn j564wEXc7pTD6lWmwlD5dLCSfxlDnRPGVcp+cr7gQUxZjDyg9vj6ahQqJn1uRQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1659826693; 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: in-reply-to:in-reply-to:references:references; bh=96mA1UgOdSt+967ZlVcodhMK/eyBg10s5fRrFsXJa9s=; b=nuPnUyUk5kskVfsNzN3XIwYInUWORHu7uiZPeYavhqbM5Pf639T5lRuVtlgX9iCU1K/gy6 R1NlWT/MRKBYBKxSAPVqcU9yx10eWtPxwkz1KZHBfWaInL55dN0fE6Df7e2kWxFMWM8g+B 1hZBOtaf/9ZvjSGRv8WjsnQAEH/rk7bG12eKJTLhy5G6I9izvtWzqGVrpamGSkt4qgM+ns vWziNh26I4H3nuMTQ/s6GS1XAF4qWBjrmLbJKTIF8L32RIZM7E3ptJp3nD7BMqCn9BSX1/ krs6TJlGLtEOxJHTohA3hBFFHT2ZhIlOgiHJYLLCCX+GHXjXP1ccpZ7QjbvYgA== Date: Sat, 6 Aug 2022 18:57:43 -0400 Message-Id: <20220806225743.422102-2-antero@mailbox.org> In-Reply-To: <20220806225743.422102-1-antero@mailbox.org> References: <20220806225743.422102-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 5fbc339201828257afa X-MBO-RS-META: fr5gbiknnqxo4i7yykxsd5fx1x79w5h6 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: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/toolkits.scm (nuklear): New variable. --- Package moved to toolkits.scm, updated to 4.10.1, installs HTML doc generated using stddoc. gnu/packages/toolkits.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/toolkits.scm b/gnu/packages/toolkits.scm index 3030e3aa49..79ea8068f1 100644 --- a/gnu/packages/toolkits.scm +++ b/gnu/packages/toolkits.scm @@ -19,6 +19,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages toolkits) + #:use-module (gnu packages documentation) #:use-module (gnu packages fontutils) #:use-module (gnu packages gl) #:use-module (gnu packages sdl) @@ -27,6 +28,7 @@ (define-module (gnu packages toolkits) #:use-module (guix packages) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (guix git-download)) (define-public imgui @@ -141,3 +143,50 @@ (define-public imgui-1.86 (sha256 (base32 "02a7b05zrka20jhzag2jb4jl624i1m456bsv69jb9zgys2p9dv1n")))))) + +(define-public nuklear + (package + (name "nuklear") + (version "4.10.1") + (home-page "https://github.com/Immediate-Mode-UI/Nuklear") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qmaza0iiq3da3qya23znnajmv9prm6rv0nbqg58qdrl23207kar")) + (snippet #~(begin (delete-file "nuklear.h") + (delete-file "doc/index.html"))))) + (build-system python-build-system) + (arguments + (list #:tests? #f ;no tests + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (with-directory-excursion "src" + (invoke "./paq.sh")) + (with-directory-excursion "doc" + (with-input-from-file "../nuklear.h" + (lambda _ + (with-output-to-file "index.html" + (lambda _ + (invoke "stddoc")))))))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "nuklear.h" + (string-append #$output "/include")) + (install-file "doc/index.html" + (string-append #$output + "/share/doc"))))))) + (native-inputs (list stddoc)) + (synopsis "Graphical user interface toolkit written in ANSI C") + (description "This package provides an immediate-mode graphical user +interface toolkit. It was designed as an embeddable user interface +for applications and does not have any dependencies, a default render backend +or OS window/input handling. The library is self contained in one single header +file and can be used either in header only mode or in implementation mode.") + (license (list license:unlicense license:expat))))