tinygltf: install bundled libraries
This commit is contained in:
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user