mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
opencollada: fix build with gcc 13
This commit is contained in:
parent
eba4d277a0
commit
dbcc6a2fe0
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libxml2, pcre
|
||||
{ lib, stdenv, fetchFromGitHub, fetchurl, cmake, pkg-config, libxml2, pcre
|
||||
, darwin}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -13,12 +13,20 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1ym16fxx9qhf952vva71sdzgbm7ifis0h1n5fj1bfdj8zvvkbw5w";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix build with gcc 13
|
||||
(fetchurl {
|
||||
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/opencollada/files/opencollada-1.6.68-gcc13.patch?id=b76590f9fb8615da3da9d783ad841c0e3881a27b";
|
||||
hash = "sha256-uimeLGHgXaFi61mmoaloJ5vo83c8EIQmtHEMngC2Nq4=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AGL ]);
|
||||
|
||||
propagatedBuildInputs = [ libxml2 pcre ];
|
||||
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
patch -p1 < ${./pcre.patch}
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
|
||||
|
|
Loading…
Reference in a new issue