diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/draco/tinygltf.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/draco/tinygltf.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/draco/tinygltf.nix b/nixpkgs/pkgs/development/libraries/draco/tinygltf.nix new file mode 100644 index 000000000000..4f965c653850 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/draco/tinygltf.nix @@ -0,0 +1,30 @@ +{ lib +, stdenv +, fetchFromGitHub +, nix-update-script +, cmake +}: + +stdenv.mkDerivation rec { + version = "2.8.7"; + pname = "tinygltf"; + + src = fetchFromGitHub { + owner = "syoyo"; + repo = "tinygltf"; + rev = "v${version}"; + hash = "sha256-uQlv+mUWnqUJIXnPf2pVuRg1akcXAfqyBIzPPmm4Np4="; + }; + + nativeBuildInputs = [ cmake ]; + + passthru.updateScript = nix-update-script { }; + + 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; + }; +} |