diff --git a/pkgs/by-name/ti/tinygltf/package.nix b/pkgs/by-name/ti/tinygltf/package.nix index 6ea3a0ba875e..6ba0367436e1 100644 --- a/pkgs/by-name/ti/tinygltf/package.nix +++ b/pkgs/by-name/ti/tinygltf/package.nix @@ -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 { };