assimp: 5.4.3 -> 6.0.2, modernize (#422357)

authored by K900 and committed by GitHub e6817f33 3f03e898

+43 -14
+29 -14
pkgs/by-name/as/assimp/package.nix
··· 4 fetchFromGitHub, 5 cmake, 6 zlib, 7 }: 8 9 - stdenv.mkDerivation rec { 10 pname = "assimp"; 11 - version = "5.4.3"; 12 outputs = [ 13 "out" 14 "lib" ··· 18 src = fetchFromGitHub { 19 owner = "assimp"; 20 repo = "assimp"; 21 - rev = "v${version}"; 22 - hash = "sha256-sOYhYHBz3Tg+pi1OIJ1mGmsjEc6dPO6nFH0aolfpLRA="; 23 }; 24 25 nativeBuildInputs = [ cmake ]; 26 buildInputs = [ 27 zlib 28 ]; 29 30 - cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ]; 31 32 - env.NIX_CFLAGS_COMPILE = toString ([ 33 - # Needed with GCC 12 34 - "-Wno-error=array-bounds" 35 - ]); 36 37 - meta = with lib; { 38 description = "Library to import various 3D model formats"; 39 mainProgram = "assimp"; 40 homepage = "https://www.assimp.org/"; 41 - license = licenses.bsd3; 42 - maintainers = with maintainers; [ ehmry ]; 43 - platforms = platforms.linux ++ platforms.darwin; 44 }; 45 - }
··· 4 fetchFromGitHub, 5 cmake, 6 zlib, 7 + nix-update-script, 8 }: 9 10 + stdenv.mkDerivation (finalAttrs: { 11 pname = "assimp"; 12 + version = "6.0.2"; 13 outputs = [ 14 "out" 15 "lib" ··· 19 src = fetchFromGitHub { 20 owner = "assimp"; 21 repo = "assimp"; 22 + tag = "v${finalAttrs.version}"; 23 + hash = "sha256-ixtqK+3iiL17GEbEVHz5S6+gJDDQP7bVuSfRMJMGEOY="; 24 }; 25 26 nativeBuildInputs = [ cmake ]; 27 + 28 buildInputs = [ 29 zlib 30 ]; 31 32 + strictDeps = true; 33 + enableParallelBuilding = true; 34 + 35 + cmakeFlags = [ 36 + (lib.cmakeBool "ASSIMP_BUILD_ASSIMP_TOOLS" true) 37 + ]; 38 + 39 + # Some matrix tests fail on non-86_64-linux: 40 + # https://github.com/assimp/assimp/issues/6246 41 + # https://github.com/assimp/assimp/issues/6247 42 + doCheck = !(stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isx86_64); 43 + checkPhase = '' 44 + runHook preCheck 45 + bin/unit 46 + runHook postCheck 47 + ''; 48 49 + passthru.updateScript = nix-update-script { }; 50 51 + meta = { 52 + changelog = "https://github.com/assimp/assimp/releases/tag/${finalAttrs.src.tag}"; 53 description = "Library to import various 3D model formats"; 54 mainProgram = "assimp"; 55 homepage = "https://www.assimp.org/"; 56 + license = lib.licenses.bsd3; 57 + maintainers = [ ]; 58 + platforms = lib.platforms.linux ++ lib.platforms.darwin; 59 }; 60 + })
+14
pkgs/development/libraries/qt-6/modules/qt3d.nix
··· 1 { 2 qtModule, 3 qtbase, 4 qtdeclarative, ··· 8 9 qtModule { 10 pname = "qt3d"; 11 propagatedBuildInputs = [ 12 qtbase 13 qtdeclarative 14 qtmultimedia 15 assimp 16 ]; 17 }
··· 1 { 2 + lib, 3 qtModule, 4 qtbase, 5 qtdeclarative, ··· 9 10 qtModule { 11 pname = "qt3d"; 12 + 13 + # make absolutely sure the vendored assimp is not used 14 + # patch cmake to accept assimp 6.x versions 15 + postPatch = '' 16 + rm -rf src/3rdparty/assimp/src 17 + substituteInPlace src/core/configure.cmake --replace-fail "WrapQt3DAssimp 5" "WrapQt3DAssimp 6" 18 + ''; 19 + 20 propagatedBuildInputs = [ 21 qtbase 22 qtdeclarative 23 qtmultimedia 24 assimp 25 + ]; 26 + 27 + cmakeFlags = [ 28 + (lib.cmakeBool "FEATURE_qt3d_system_assimp" true) # use nix assimp 29 + (lib.cmakeBool "TEST_assimp" true) # required for internal cmake asserts 30 ]; 31 }