From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YB2PG4veDWY7FwAA62LTzQ:P1 (envelope-from ) for ; Thu, 04 Apr 2024 00:56:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YB2PG4veDWY7FwAA62LTzQ (envelope-from ) for ; Thu, 04 Apr 2024 00:56:11 +0200 X-Envelope-To: larch@yhetil.org 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712184971; a=rsa-sha256; cv=none; b=ZrVGFLhK1gWKpuOR3OtgUW8TzMK3NmTl4QipN0LT6b8hwsAsi2zzVWM7uoGl9DyrvqJSWg FWKnwVPWWCNtmZhHYLu/zxO3cPfqPS5TKDTpI3BicSG/BYLGaeK9In13GES+pbuFiV2t68 nx5bPuQA+34hjxV4K4gl7AUXmQIvXoZNswgThR2Jc6zIOBxnoaK9JyIJWH0Sv12KmiiIIp 65SvJXakN+eOMWG7p7Plokcm67RDr5Lp9R7EVR+JRasrxhAJBe4j1rBaaz4K4pmnUWKmQL y+a0i/cjyNzlNdA3YZbVMzlwJHo2iTsCYiCNtJUIMwrWTPWYakSmNIn6ozgS2g== 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712184971; h=from:from:sender:sender: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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=h3r0VJlVQMw8HLtR0enKzzxwet8sGHqvrM1Ly2Js/gY=; b=tzCqoLtHxh1GgmT+WYISHcpsz+F7/EZ7fzPA7XUDtYKJCRUreod1wInC19ESFdqBsppSEQ SBXMsn76NPgJ5CEKDXZZqc0bhsqDS0jc3RcEwV8corTzxsuYa6BsoejJYFWh7aBzqKQ0GE lfIVJXIeZ3n0ii8NOt+KPpRaae9Zi1XMQzZ/bIKkWp1454HlYc7Gcbm+LaOmI32PJy4tcd k0/evZTE8bn7Z9o/CvPIiUatmITfNld/SdhC5lfnwtEMLtNAeUxdNO0dqODJv2FZCME8DJ Da58vlIhfyQEETrpLRR/i1ycfduu8Unw0RbwtBUdD29MY6YVzNFoji/xlXdaxw== 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 2D715ED3C for ; Thu, 4 Apr 2024 00:56:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rs9WR-0006R1-Js; Wed, 03 Apr 2024 18:55:59 -0400 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 1rs9WQ-0006Ql-P4 for guix-patches@gnu.org; Wed, 03 Apr 2024 18:55:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rs9WQ-0005Os-Gz for guix-patches@gnu.org; Wed, 03 Apr 2024 18:55:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rs9WV-0001Tb-3M for guix-patches@gnu.org; Wed, 03 Apr 2024 18:56:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56576] [PATCH v3 3/3] gnu: Add nuklear. Resent-From: Christina O'Donnell Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Apr 2024 22:56:03 +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: Maxime Devos , Antero Mejr , Steve George Received: via spool by 56576-submit@debbugs.gnu.org id=B56576.17121849295455 (code B ref 56576); Wed, 03 Apr 2024 22:56:03 +0000 Received: (at 56576) by debbugs.gnu.org; 3 Apr 2024 22:55:29 +0000 Received: from localhost ([127.0.0.1]:59916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs9Vw-0001Pk-2F for submit@debbugs.gnu.org; Wed, 03 Apr 2024 18:55:28 -0400 Received: from vmi993448.contaboserver.net ([194.163.141.236]:45482 helo=mutix.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs9Vr-0001PM-IW for 56576@debbugs.gnu.org; Wed, 03 Apr 2024 18:55:26 -0400 Received: from [86.132.246.87] (host81-147-82-218.range81-147.btcentralplus.com [81.147.82.218]) (Authenticated sender: cdo) by mutix.org (Postfix) with ESMTPSA id 46373A60825; Thu, 4 Apr 2024 00:55:18 +0200 (CEST) From: Christina O'Donnell Date: Wed, 3 Apr 2024 23:46:35 +0100 Message-ID: <4a93e473cec7579f04fb4307f12520f09110b622.1712184392.git.cdo@mutix.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Spam-Score: -4.86 X-Migadu-Queue-Id: 2D715ED3C X-Migadu-Spam-Score: -4.86 X-Migadu-Scanner: mx10.migadu.com X-TUID: BMUyz0bU1oKB From: Antero Mejr * gnu/packages/toolkits.scm (nuklear): New variable. --- gnu/packages/toolkits.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/toolkits.scm b/gnu/packages/toolkits.scm index 9d002ecab1..3ba3399899 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 @@ -181,3 +183,50 @@ (define-public imgui-1.86 (inputs (modify-inputs (package-inputs imgui) (delete "freetype"))))) + +(define-public nuklear + (package + (name "nuklear") + (version "4.12.0") + (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 + "13cswwdys4hqdvbm4g4b9l269i16s7c4204j16v67ghj3b4mjifg")) + (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)))) -- 2.41.0