depot/third_party/nixpkgs/pkgs/development/libraries/assimp/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

39 lines
843 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, zlib
}:
stdenv.mkDerivation rec {
pname = "assimp";
version = "5.3.1";
outputs = [ "out" "lib" "dev" ];
src = fetchFromGitHub {
owner = "assimp";
repo = "assimp";
rev = "v${version}";
hash = "sha256-/1A8n7oe9WsF3FpbLZxhifzrdj38t9l5Kc8Q5jfDoyY=";
};
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 = "A 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;
};
}