From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yPyyN47ZFWYSIQAAqHPOHw:P1 (envelope-from ) for ; Wed, 10 Apr 2024 02:13:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yPyyN47ZFWYSIQAAqHPOHw (envelope-from ) for ; Wed, 10 Apr 2024 02:13:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=KUoKn5Lr; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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=1712707982; 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:dkim-signature; bh=o4hQg9GcVVwl2rsAlcrHRjkOON0bu3IVBz3y8i+afEE=; b=dReebDBYaTIZrDh42B+8NlYfvCcfv5k8Ijs4S5nAvq2S9f3uW9KiLusxmYkUYBOF0izZeR tbH0/M7Ou2FzLB/G/PLBkk1OwLqWmh7vcESaUnpY3AFteg5USIrnv0upIEMrOsywNx8uTS edWnakgKNuJj4buAYkH2MNm2t8nG8zeB73hA7U27137FX73nZtB17pYzM0/SWVa4j19u3D 27k1PY/ogrDrQ2pb9CqnAbp3l9RQNoWbe/jRDtWmIC9iOgKz6Ys/bae5xfseoG1GX4daj/ kdaHIfT/81iyt41UVvtu3nPZR+qUFSb8Wy1qYZIqElVKQP9T2sxie+8JHZz3Wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=KUoKn5Lr; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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=1712707982; a=rsa-sha256; cv=none; b=j0AlJdoGR4SOAwOsuXBgC+L1e1ZMXnHggELmExAqo3Fkn8ks4CftvYs8W7pb7Mu2lNfjsL xox9xvMR1imecdZT2oF5tLUm93S1LtogvvdXX7qqOS+yyoTQS8ehJzNfG404nTzaaPb7Z4 H/iqlfSNwKN6Sr27tcXHTtBfC7WdWeUxgNhWAHAABd5deIeZnKEWnagWg2p3Dud6TxyNG2 KTJdQKlxG1QFKI3k3IzG7z0xO1Drzul0qZNYIKfK90h8+22G1WV7a6OiSYKLjgI+E2hlFi F6FcE/2+C8Z25dNwOgv2gxSrYJXkcth4kw/ZCFEjIESp48dBesNXe1AodCQVoQ== 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 A2EDC62E52 for ; Wed, 10 Apr 2024 02:13:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruLaB-0001jk-C3; Tue, 09 Apr 2024 20:12:55 -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 1ruLa9-0001jB-OK for guix-patches@gnu.org; Tue, 09 Apr 2024 20:12:53 -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 1ruLa9-0007lS-GO for guix-patches@gnu.org; Tue, 09 Apr 2024 20:12:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruLaH-0007yO-Nl for guix-patches@gnu.org; Tue, 09 Apr 2024 20:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70319] [PATCH 1/2] gnu: Add tinygltf. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Apr 2024 00:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70319 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70319@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 70319-submit@debbugs.gnu.org id=B70319.171270796730565 (code B ref 70319); Wed, 10 Apr 2024 00:13:01 +0000 Received: (at 70319) by debbugs.gnu.org; 10 Apr 2024 00:12:47 +0000 Received: from localhost ([127.0.0.1]:51796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruLa3-0007wv-AK for submit@debbugs.gnu.org; Tue, 09 Apr 2024 20:12:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruLa0-0007vv-OY for 70319@debbugs.gnu.org; Tue, 09 Apr 2024 20:12:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0CFE7240027 for <70319@debbugs.gnu.org>; Wed, 10 Apr 2024 02:12:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712707950; bh=dGvMHVnITWOEpLRy9yYnlMNmq/87dPTm6Ii+d8HQ99s=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=KUoKn5LrSANtM7FJMTtTbTtCJkNT022oz5751c7kFr0vO0Sg10BqhzgQsYeyf1lnD T2tsmYasJ6FRs5UmfZ4Wwq89KN58o4kFXtqzBVB/MNeg3G+j3aRP3mNUqzxboyDRfM l9cPOkh6/iFDY+tIuVdgCzpDvE70ywMzGUH7PoS/FHmOD4WOLcwde3W46IpH1GZb48 vynWGLs6vjTwsbyf1+/pee1U50HZDDbrQ5irxWJXkK8h0nKVXwrdYWla54LswActb2 +BP8faYvobYwDVgSqAdwNHNG6p4h+RuJQi6VMnD851rDPzhEUfFGg0/lCtnktgQFhI kZBz8jNC0moMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VDjvJ6m2sz9rwn; Wed, 10 Apr 2024 02:12:28 +0200 (CEST) From: Vinicius Monego Date: Wed, 10 Apr 2024 00:12:02 +0000 Message-Id: <769daf7ae2277aecea26723b2a8e3165aa92e146.1712707652.git.monego@posteo.net> 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-Migadu-Spam-Score: -3.97 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -3.97 X-Migadu-Queue-Id: A2EDC62E52 X-TUID: AvbkWr2o4IOz * gnu/packages/graphics.scm (tinygltf): New variable. Change-Id: I749ced85142b8dd2ebbe916533f27bf6d167bbff --- gnu/packages/graphics.scm | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index a63629823a..d04fcbfd6d 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2367,6 +2367,51 @@ (define-public openxr ;; Dual licensed. Either license applies. (license (list license:asl2.0 license:expat)))) +(define-public tinygltf + (package + (name "tinygltf") + (version "2.8.21") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/syoyo/tinygltf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14712lndwlk4y001jxf2rxhwrw0w5gbc2hyh9kpik1galdzg41ii")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f ; tests are not managed by CMake + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'use-our-packages + ;; tinygltf ships json.hpp, stb_image.h and stb_image_write.h + ;; into the repo as common files. Delete those, and use the + ;; files from our packages instead. + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list "json.hpp" + "stb_image.h" + "stb_image_write.h")) + (symlink (search-input-file inputs "json.hpp") + "json.hpp") + (symlink (search-input-file inputs "stb_image.h") + "stb_image.h") + (symlink (search-input-file inputs "stb_image_write.h") + "stb_image_write.h"))) + (add-after 'install 'delete-static-lib + (lambda _ + (delete-file (string-append #$output + "/lib/libtinygltf.a"))))))) + (inputs (list nlohmann-json stb-image stb-image-write)) + (home-page "https://github.com/syoyo/tinygltf") + (synopsis "Header only C++11 tiny glTF 2.0 library") + (description "TinyGLTF is a header only C++11 tiny +@url{https://github.com/KhronosGroup/glTF, glTF} 2.0 library.") + (license license:expat))) + (define-public monado (package (name "monado") -- 2.39.2