Commit 974b7b39 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

tinygltf: unvendor json & stb

parent e8ea1098
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
{
  lib,

  stdenv,
  fetchFromGitHub,
  nix-update-script,

  # nativeBuildInputs
  cmake,

  # propagatedBuildInputs
  nlohmann_json,
  stb,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -20,6 +28,17 @@ stdenv.mkDerivation (finalAttrs: {
    cmake
  ];

  propagatedBuildInputs = [
    nlohmann_json
    stb
  ];

  cmakeFlags = [
    (lib.cmakeBool "TINYGLTF_INSTALL_VENDOR" false)
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Header only C++11 tiny glTF 2.0 library";
    homepage = "https://github.com/syoyo/tinygltf";