opencollada: fix on darwin
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, libxml2, pcre }:
|
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, libxml2, pcre
|
||||||
|
, darwin}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "opencollada-${version}";
|
name = "opencollada-${version}";
|
||||||
@@ -13,16 +14,22 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ cmake ];
|
buildInputs = [ cmake ]
|
||||||
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AGL ]);
|
||||||
|
|
||||||
propagatedBuildInputs = [ libxml2 pcre ];
|
propagatedBuildInputs = [ libxml2 pcre ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
patchPhase = lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
|
||||||
|
--replace math.h cmath
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A library for handling the COLLADA file format";
|
description = "A library for handling the COLLADA file format";
|
||||||
homepage = https://github.com/KhronosGroup/OpenCOLLADA/;
|
homepage = https://github.com/KhronosGroup/OpenCOLLADA/;
|
||||||
maintainers = [ stdenv.lib.maintainers.eelco ];
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user