blob: 00271dcff0a421683df733ad860a5709cb9ea154 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
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;
};
})
|