nixpkgs/pkgs/development/libraries/draco/tinygltf.nix
Jan Solanti 4137dbc273 tinygltf: inline in draco
This is a header-only library whose only user is draco. Inline it in the draco
package since there are no other users and upgrading it to 2.8.8 breaks the draco
build.
2023-06-25 21:46:58 -03:00

31 lines
634 B
Nix

{ 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;
};
}