bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
39 lines
841 B
Nix
39 lines
841 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, boost
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "assimp";
|
|
version = "5.4.1";
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "assimp";
|
|
repo = "assimp";
|
|
rev = "v${version}";
|
|
hash = "sha256-F3aaEaHZyOLES6zOYqHRG0BtaKk9d/bAHCtal6FsIWc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ boost zlib ];
|
|
|
|
cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString ([
|
|
# Needed with GCC 12
|
|
"-Wno-error=array-bounds"
|
|
]);
|
|
|
|
meta = with lib; {
|
|
description = "Library to import various 3D model formats";
|
|
mainProgram = "assimp";
|
|
homepage = "https://www.assimp.org/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ehmry ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|