2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-12-03 08:41:04 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tinyobjloader";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "1.0.7";
|
2020-12-03 08:41:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tinyobjloader";
|
|
|
|
repo = "tinyobjloader";
|
|
|
|
rev = "v${version}";
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "sha256-BNffbicnLTGK2GQ2/bB328LFU9fqHxrpAVj2hJaekWc=";
|
2020-12-03 08:41:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-03 08:41:04 +00:00
|
|
|
homepage = "https://github.com/tinyobjloader/tinyobjloader";
|
|
|
|
description = "Tiny but powerful single file wavefront obj loader";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.all;
|
2020-12-03 08:41:04 +00:00
|
|
|
};
|
|
|
|
}
|