python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / assimp / default.nix
blob804c97ffd747c0ce40fc9481256a9aa1fca58def
1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, zlib }:
3 stdenv.mkDerivation rec {
4   pname = "assimp";
5   version = "5.1.3";
6   outputs = [ "out" "lib" "dev" ];
8   src = fetchFromGitHub{
9     owner = "assimp";
10     repo = "assimp";
11     rev = "v${version}";
12     hash = "sha256-GNSfaP8O5IsjGwtC3DFaV4OiMMUXIcmHmz+5TCT/HP8=";
13   };
15   patches = [
16     # Fix include directory with split outputs
17     # https://github.com/assimp/assimp/pull/4337
18     (fetchpatch {
19       url = "https://github.com/assimp/assimp/commit/5dcaf445c3da079cf43890a0688428a7e1de0b30.patch";
20       sha256 = "sha256-KwqTAoDPkhFq469+VaUuGoqfymu2bWLG9W3BvFvyU5I=";
21     })
22   ];
24   nativeBuildInputs = [ cmake ];
25   buildInputs = [ boost zlib ];
27   meta = with lib; {
28     description = "A library to import various 3D model formats";
29     homepage = "https://www.assimp.org/";
30     license = licenses.bsd3;
31     maintainers = with maintainers; [ ehmry ];
32     platforms = platforms.linux ++ platforms.darwin;
33   };