Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
948 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
cmake,
dos2unix,
fetchFromGitHub,
lib,
libxml2,
pcre,
pkg-config,
stdenv,
}:
stdenv.mkDerivation {
pname = "opencollada";
version = "0-unstable-2025-01-30";
src = fetchFromGitHub {
owner = "aras-p";
repo = "OpenCOLLADA";
rev = "4526eb8aaa6462c71fbedd23103976c151a01c50";
sha256 = "sha256-ctr+GjDzxOJxBfaMwjwayPkAOcF+FMsP1X72QCOwvTY=";
};
# Fix freaky dos-style CLRF things
prePatch = ''
dos2unix CMakeLists.txt
'';
patches = [
# https://github.com/aras-p/OpenCOLLADA/pull/1
./cmake4-compat.patch
];
nativeBuildInputs = [
cmake
pkg-config
dos2unix
];
propagatedBuildInputs = [
libxml2
pcre
];
meta = {
description = "Library for handling the COLLADA file format";
homepage = "https://github.com/aras-p/OpenCOLLADA";
maintainers = [ lib.maintainers.amarshall ];
platforms = lib.platforms.unix;
license = lib.licenses.mit;
};
}