mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00
assimp: 5.1.3 → 5.2.5
This commit is contained in:
parent
85ddaaf8f4
commit
d3a307c813
@ -1,29 +1,28 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, zlib }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, boost
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "assimp";
|
pname = "assimp";
|
||||||
version = "5.1.3";
|
version = "5.2.5";
|
||||||
outputs = [ "out" "lib" "dev" ];
|
outputs = [ "out" "lib" "dev" ];
|
||||||
|
|
||||||
src = fetchFromGitHub{
|
src = fetchFromGitHub{
|
||||||
owner = "assimp";
|
owner = "assimp";
|
||||||
repo = "assimp";
|
repo = "assimp";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-GNSfaP8O5IsjGwtC3DFaV4OiMMUXIcmHmz+5TCT/HP8=";
|
hash = "sha256-vQx+PaET5mlvvIGHk6pEnZvM3qw8DiC3hd1Po6OAHxQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Fix include directory with split outputs
|
|
||||||
# https://github.com/assimp/assimp/pull/4337
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/assimp/assimp/commit/5dcaf445c3da079cf43890a0688428a7e1de0b30.patch";
|
|
||||||
sha256 = "sha256-KwqTAoDPkhFq469+VaUuGoqfymu2bWLG9W3BvFvyU5I=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ boost zlib ];
|
buildInputs = [ boost zlib ];
|
||||||
|
|
||||||
|
cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library to import various 3D model formats";
|
description = "A library to import various 3D model formats";
|
||||||
homepage = "https://www.assimp.org/";
|
homepage = "https://www.assimp.org/";
|
||||||
|
Loading…
Reference in New Issue
Block a user