mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, libxml2, pcre
|
|
, darwin}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opencollada";
|
|
|
|
version = "1.6.68";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "OpenCOLLADA";
|
|
rev = "v${version}";
|
|
sha256 = "1ym16fxx9qhf952vva71sdzgbm7ifis0h1n5fj1bfdj8zvvkbw5w";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ cmake ]
|
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AGL ]);
|
|
|
|
propagatedBuildInputs = [ libxml2 pcre ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
patchPhase = ''
|
|
patch -p1 < ${./pcre.patch}
|
|
'' + lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
|
|
--replace math.h cmath
|
|
'';
|
|
|
|
meta = {
|
|
description = "A library for handling the COLLADA file format";
|
|
homepage = https://github.com/KhronosGroup/OpenCOLLADA/;
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
license = stdenv.lib.licenses.mit;
|
|
};
|
|
}
|