nixpkgs/pkgs/development/libraries/assimp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
799 B
Nix
Raw Normal View History

2022-12-23 17:10:52 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, zlib
}:
2017-03-11 01:51:45 +00:00
stdenv.mkDerivation rec {
pname = "assimp";
2022-12-23 17:10:52 +00:00
version = "5.2.5";
2021-12-04 10:30:41 +00:00
outputs = [ "out" "lib" "dev" ];
2016-05-12 07:12:43 +00:00
src = fetchFromGitHub{
owner = "assimp";
repo = "assimp";
rev = "v${version}";
2022-12-23 17:10:52 +00:00
hash = "sha256-vQx+PaET5mlvvIGHk6pEnZvM3qw8DiC3hd1Po6OAHxQ=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ boost zlib ];
2022-12-23 17:10:52 +00:00
cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ];
2022-12-23 16:57:29 +00:00
NIX_CFLAGS_COMPILE = [
# Needed with GCC 12
"-Wno-error=array-bounds"
];
meta = with lib; {
description = "A library to import various 3D model formats";
2021-12-04 10:30:41 +00:00
homepage = "https://www.assimp.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ ehmry ];
2020-08-24 21:23:16 +00:00
platforms = platforms.linux ++ platforms.darwin;
};
}