Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 31 lines 641 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6 cmake, 7}: 8 9stdenv.mkDerivation rec { 10 version = "2.8.7"; 11 pname = "tinygltf"; 12 13 src = fetchFromGitHub { 14 owner = "syoyo"; 15 repo = "tinygltf"; 16 rev = "v${version}"; 17 hash = "sha256-uQlv+mUWnqUJIXnPf2pVuRg1akcXAfqyBIzPPmm4Np4="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 passthru.updateScript = nix-update-script { }; 23 24 meta = with lib; { 25 description = "Header only C++11 tiny glTF 2.0 library"; 26 homepage = "https://github.com/syoyo/tinygltf"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ jansol ]; 29 platforms = platforms.all; 30 }; 31}