1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libxml2, pcre
4 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
10 owner = "KhronosGroup";
13 sha256 = "1ym16fxx9qhf952vva71sdzgbm7ifis0h1n5fj1bfdj8zvvkbw5w";
16 nativeBuildInputs = [ cmake pkg-config ];
17 buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AGL ]);
19 propagatedBuildInputs = [ libxml2 pcre ];
22 patch -p1 < ${./pcre.patch}
23 '' + lib.optionalString stdenv.isDarwin ''
24 substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
25 --replace math.h cmath
29 description = "A library for handling the COLLADA file format";
30 homepage = "https://github.com/KhronosGroup/OpenCOLLADA/";
31 maintainers = [ lib.maintainers.eelco ];
32 platforms = lib.platforms.unix;
33 license = lib.licenses.mit;