mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
46 lines
918 B
Nix
46 lines
918 B
Nix
{
|
|
lib,
|
|
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
|
|
# nativeBuildInputs
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tinygltf";
|
|
version = "3.0.1";
|
|
|
|
strictDeps = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "syoyo";
|
|
repo = "tinygltf";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ZBKtqZMumaSiFBdc8ZYolryOutYQ/WP0JAxuoBf0eMg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = [
|
|
# unvendoring will break downstream applications
|
|
# unless at least patch the CMake modules
|
|
(lib.cmakeBool "TINYGLTF_INSTALL_VENDOR" true)
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Header only C++11 tiny glTF 2.0 library";
|
|
homepage = "https://github.com/syoyo/tinygltf";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|