From 7380fd09432e846e6ebb987bc06780b3c375db5c Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Sun, 2 Mar 2025 21:44:24 -0500 Subject: [PATCH] opencollada-blender: init at unstable-2025-01-30 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Blender is now using a fork of OpenCOLLADA. They have done so since 4.2, but in the upcoming Blender 4.4, Blender will fail to build with the original and needs this fork. This fork “removes everything (a lot!) that is not actually needed by Blender” and so is likely not suitable for use by other projects (of which there are a few within Nixpkgs). See more in [upstream README][1]. [1]: https://github.com/aras-p/OpenCOLLADA/blob/4526eb8aaa6462c71fbedd23103976c151a01c50/README.md --- .../op/opencollada-blender/package.nix | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/op/opencollada-blender/package.nix diff --git a/pkgs/by-name/op/opencollada-blender/package.nix b/pkgs/by-name/op/opencollada-blender/package.nix new file mode 100644 index 000000000000..0048aaa2ea2c --- /dev/null +++ b/pkgs/by-name/op/opencollada-blender/package.nix @@ -0,0 +1,39 @@ +{ + cmake, + fetchFromGitHub, + lib, + libxml2, + pcre, + pkg-config, + stdenv, +}: + +stdenv.mkDerivation { + pname = "opencollada"; + version = "unstable-2025-01-30"; + + src = fetchFromGitHub { + owner = "aras-p"; + repo = "OpenCOLLADA"; + rev = "4526eb8aaa6462c71fbedd23103976c151a01c50"; + sha256 = "sha256-ctr+GjDzxOJxBfaMwjwayPkAOcF+FMsP1X72QCOwvTY="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + propagatedBuildInputs = [ + libxml2 + pcre + ]; + + meta = { + description = "Library for handling the COLLADA file format"; + homepage = "https://github.com/KhronosGroup/OpenCOLLADA/"; + maintainers = [ lib.maintainers.amarshall ]; + platforms = lib.platforms.unix; + license = lib.licenses.mit; + }; +}