6 stdenv.mkDerivation rec {
7 pname = "tinyobjloader";
10 src = fetchFromGitHub {
11 owner = "tinyobjloader";
12 repo = "tinyobjloader";
14 sha256 = "sha256-BNffbicnLTGK2GQ2/bB328LFU9fqHxrpAVj2hJaekWc=";
17 nativeBuildInputs = [ cmake ];
19 # https://github.com/tinyobjloader/tinyobjloader/issues/336
21 substituteInPlace tinyobjloader.pc.in \
22 --replace '$'{prefix}/@TINYOBJLOADER_LIBRARY_DIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
23 --replace '$'{prefix}/@TINYOBJLOADER_INCLUDE_DIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
27 homepage = "https://github.com/tinyobjloader/tinyobjloader";
28 description = "Tiny but powerful single file wavefront obj loader";
29 license = licenses.mit;
30 maintainers = [ maintainers.ivar ];
31 platforms = platforms.all;