1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 03:53:41 +00:00
nixpkgs/pkgs/development/libraries/opencollada/default.nix

36 lines
972 B
Nix
Raw Normal View History

2017-11-13 22:18:04 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, libxml2, pcre
, darwin}:
2014-12-23 17:16:47 +00:00
2017-09-16 20:40:02 +01:00
stdenv.mkDerivation rec {
name = "opencollada-${version}";
2014-12-23 17:16:47 +00:00
version = "1.6.63";
2014-12-23 17:16:47 +00:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCOLLADA";
2017-09-16 20:40:02 +01:00
rev = "v${version}";
sha256 = "1x8hz5nkz4lxsf17jv8sdl92dmbbpkqck8jkkc6g32d8gbs3gha1";
2014-12-23 17:16:47 +00:00
};
nativeBuildInputs = [ pkgconfig ];
2017-11-13 22:18:04 +00:00
buildInputs = [ cmake ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AGL ]);
2014-12-23 17:16:47 +00:00
propagatedBuildInputs = [ libxml2 pcre ];
enableParallelBuilding = true;
2017-11-13 22:18:04 +00:00
patchPhase = lib.optionalString stdenv.isDarwin ''
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
--replace math.h cmath
'';
2014-12-23 17:16:47 +00:00
meta = {
description = "A library for handling the COLLADA file format";
homepage = https://github.com/KhronosGroup/OpenCOLLADA/;
maintainers = [ stdenv.lib.maintainers.eelco ];
2017-11-13 22:18:04 +00:00
platforms = stdenv.lib.platforms.unix;
2014-12-23 17:16:47 +00:00
};
}