2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2.8.7";
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "tinygltf";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "syoyo";
|
|
|
|
repo = "tinygltf";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-uQlv+mUWnqUJIXnPf2pVuRg1akcXAfqyBIzPPmm4Np4=";
|
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;
|
|
|
|
};
|
|
|
|
}
|