assimp: fix build for riscv
This commit is contained in:
parent
30c0a2f738
commit
e837475e8b
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||||
version = "5.2.5";
|
version = "5.2.5";
|
||||||
outputs = [ "out" "lib" "dev" ];
|
outputs = [ "out" "lib" "dev" ];
|
||||||
|
|
||||||
src = fetchFromGitHub{
|
src = fetchFromGitHub {
|
||||||
owner = "assimp";
|
owner = "assimp";
|
||||||
repo = "assimp";
|
repo = "assimp";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
@ -23,10 +23,12 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ];
|
cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ];
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = toString [
|
env.NIX_CFLAGS_COMPILE = toString ([
|
||||||
# Needed with GCC 12
|
# Needed with GCC 12
|
||||||
"-Wno-error=array-bounds"
|
"-Wno-error=array-bounds"
|
||||||
];
|
] ++ lib.optionals stdenv.hostPlatform.isRiscV [
|
||||||
|
"-Wno-error=free-nonheap-object"
|
||||||
|
]);
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library to import various 3D model formats";
|
description = "A library to import various 3D model formats";
|
||||||
|
|
Loading…
Reference in a new issue