From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 8FC8B0ZaQ2aA7AAAqHPOHw:P1 (envelope-from ) for ; Tue, 14 May 2024 14:34:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8FC8B0ZaQ2aA7AAAqHPOHw (envelope-from ) for ; Tue, 14 May 2024 14:34:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715690054; 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-type:content-type: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=+hMKAtT8BEqGjyL8/iJtKb0FG9wiAAWCMAlvg/2mF2s=; b=raONfHG08xZ+MeokFJgp8WsFAbucK7wDc8m3PWWSZ/wpkOOB9HV8Sdlw4lDFsO1MwV0TcK sehGB//edxuOkTFRO9UMYpK7mpEk9d5IWb+J6RCpvLowe7HQPtFLSaAq/xwWQIASbNLmRK RrCI+SKnHxiuCnLy29E7qDI/v9/jXrbCeI8NI/4U9weeuYxOaRlyxRkt48aewwsT9a+r0c paZ8QiOkIDahJgS752ObmeC1hcs++bERfxba8dzLnp2BCRTcIRWOci4IqNQk2IEoHkWNu3 9SBeUKGyPPCFIf5oI1E+1Uz/lFtRoWRR7r2HBe70HaEMKLh3RrWLTVjYFEb9Dg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715690054; a=rsa-sha256; cv=none; b=qxJA9xuBUoPdkrQTOiWgaofnwA5QN00sVDLgZrNSkP2842WE+iPEcQYI0flt5dBc3Z8vs/ moiF/fg5gHiORqDBxCBSmoX3BLaw4ZI+3y3iLDChO7k4iiGRbfphwy6KOh3Xl2tjYNgwU2 QAomX8/Py5i4vLwDPzbEyve32zQOkHTkd2A5S8elu10NpMGO1CnYRmNoItz5H4kFitBNRa 142WbGlFp4sOsqOvFoPn8o38/rjQvxYsCqfG2BhM7W61wJbCHF6Zliy41KGKo7NSTnsoU+ 4vfP8q/rdQAF8UeJGJ1AYyVjSgmEVEaHlSV2wCZv3mv7j+xcBHSUv35c1u4aIQ== 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 95EFC253DD for ; Tue, 14 May 2024 14:34:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6rM2-0001es-QZ; Tue, 14 May 2024 08:34:02 -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 1s6rM1-0001ek-9d for guix-patches@gnu.org; Tue, 14 May 2024 08:34:01 -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 1s6rM0-0007WG-VO for guix-patches@gnu.org; Tue, 14 May 2024 08:34:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6rM1-0004Oh-VE for guix-patches@gnu.org; Tue, 14 May 2024 08:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70319] [PATCH 1/2] gnu: Add tinygltf. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 May 2024 12:34: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: Vinicius Monego , 70319@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 70319-submit@debbugs.gnu.org id=B70319.171569000516894 (code B ref 70319); Tue, 14 May 2024 12:34:01 +0000 Received: (at 70319) by debbugs.gnu.org; 14 May 2024 12:33:25 +0000 Received: from localhost ([127.0.0.1]:39087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6rLR-0004OQ-DJ for submit@debbugs.gnu.org; Tue, 14 May 2024 08:33:25 -0400 Received: from 15.mo582.mail-out.ovh.net ([188.165.39.161]:51613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6rLN-0004OI-Py for 70319@debbugs.gnu.org; Tue, 14 May 2024 08:33:23 -0400 Received: from director6.ghost.mail-out.ovh.net (unknown [10.108.25.52]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 4VdwkQ3hHDz1JxV for <70319@debbugs.gnu.org>; Tue, 14 May 2024 12:33:18 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-q6lnl (unknown [10.108.42.118]) by director6.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 0E4A61FEB1; Tue, 14 May 2024 12:33:17 +0000 (UTC) Received: from ngraves.fr ([37.59.142.98]) by ghost-submission-6684bf9d7b-q6lnl with ESMTPSA id k4V0Ng1aQ2aE1gAAk4Vs0g (envelope-from ); Tue, 14 May 2024 12:33:17 +0000 X-OVh-ClientIp: 81.67.146.208 In-Reply-To: <769daf7ae2277aecea26723b2a8e3165aa92e146.1712707652.git.monego@posteo.net> References: <769daf7ae2277aecea26723b2a8e3165aa92e146.1712707652.git.monego@posteo.net> Date: Tue, 14 May 2024 14:33:17 +0200 Message-ID: <87msospo8i.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 6489124114133017107 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdegiedgheefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhephfegtdejveetvdegleeiuefgteevtdelieeguefhvdejteejjeffuedviefftdffnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddrleeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejtdefudelseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedvpdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.37 X-Migadu-Queue-Id: 95EFC253DD X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.37 X-TUID: 5OQ/Z18fsZUC On 2024-04-10 00:12, Vinicius Monego wrote: > * 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")) These are pretty big files. It would be more adapated to remove them in a snippet from origin. This is because it avoids them in the nar archive in Guix substitute servers. Plus, it seems that we can possibly also remove catch, which is packaged in Guix. > + (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))) If we can't remove catch, we should add a Boost license : https://github.com/syoyo/tinygltf/tree/v2.8.21?tab=readme-ov-file#third-party-licenses > + > (define-public monado > (package > (name "monado") -- Best regards, Nicolas Graves