1{ lib
2, stdenv
3, fetchFromGitHub
4, nix-update-script
5, cmake
6}:
7
8stdenv.mkDerivation rec {
9 version = "2.6.3";
10 pname = "tinygltf";
11
12 src = fetchFromGitHub {
13 owner = "syoyo";
14 repo = "tinygltf";
15 rev = "v${version}";
16 sha256 = "sha256-IyezvHzgLRyc3z8HdNsQMqDEhP+Ytw0stFNak3C8lTo=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 passthru.updateScript = nix-update-script {
22 attrPath = pname;
23 };
24
25 meta = with lib; {
26 description = "Header only C++11 tiny glTF 2.0 library";
27 homepage = "https://github.com/syoyo/tinygltf";
28 license = licenses.mit;
29 maintainers = with maintainers; [ jansol ];
30 platforms = platforms.all;
31 };
32}