1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5}:
6
7stdenv.mkDerivation rec {
8 pname = "imath";
9 version = "3.1.6";
10
11 src = fetchFromGitHub {
12 owner = "AcademySoftwareFoundation";
13 repo = "imath";
14 rev = "v${version}";
15 sha256 = "sha256-FUruHlnFMSl+8r1VZnUQd2feLNGz+k0mLuyca9cgcbw=";
16 };
17
18 nativeBuildInputs = [ cmake ];
19
20 meta = with lib; {
21 description = "Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics";
22 homepage = "https://github.com/AcademySoftwareFoundation/Imath";
23 license = licenses.bsd3;
24 maintainers = with maintainers; [ paperdigits ];
25 platforms = platforms.all;
26 };
27}