tinygltf: install bundled libraries

This commit is contained in:
Xiangyan Sun
2026-05-02 09:22:33 -07:00
parent 202698fe28
commit e0d36081ed
+6 -10
View File
@@ -7,16 +7,15 @@
# nativeBuildInputs
cmake,
# propagatedBuildInputs
nlohmann_json,
stb,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tinygltf";
version = "2.9.7";
strictDeps = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "syoyo";
repo = "tinygltf";
@@ -28,13 +27,10 @@ stdenv.mkDerivation (finalAttrs: {
cmake
];
propagatedBuildInputs = [
nlohmann_json
stb
];
cmakeFlags = [
(lib.cmakeBool "TINYGLTF_INSTALL_VENDOR" false)
# unvendoring will break downstream applications
# unless at least patch the CMake modules
(lib.cmakeBool "TINYGLTF_INSTALL_VENDOR" true)
];
passthru.updateScript = nix-update-script { };