depot/third_party/nixpkgs/pkgs/development/libraries/assimp/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

38 lines
812 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, zlib
}:
stdenv.mkDerivation rec {
pname = "assimp";
version = "5.2.5";
outputs = [ "out" "lib" "dev" ];
src = fetchFromGitHub{
owner = "assimp";
repo = "assimp";
rev = "v${version}";
hash = "sha256-vQx+PaET5mlvvIGHk6pEnZvM3qw8DiC3hd1Po6OAHxQ=";
};
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";
homepage = "https://www.assimp.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ ehmry ];
platforms = platforms.linux ++ platforms.darwin;
};
}