2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "2.7.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "tinygltf";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "syoyo";
|
|
|
|
repo = "tinygltf";
|
|
|
|
rev = "v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-pIymkC+LzoSPU0jnpBH07ag/04W0c9TmPeDUSYQdgx4=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Header only C++11 tiny glTF 2.0 library";
|
|
|
|
homepage = "https://github.com/syoyo/tinygltf";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jansol ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|