From 4449a20ae13422abcf0e9b6160af81150704bdfd Mon Sep 17 00:00:00 2001 From: Mica Semrick Date: Sat, 10 Jul 2021 22:59:40 -0700 Subject: [PATCH] imath: init at 3.0.5 --- pkgs/development/libraries/imath/default.nix | 27 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/libraries/imath/default.nix diff --git a/pkgs/development/libraries/imath/default.nix b/pkgs/development/libraries/imath/default.nix new file mode 100644 index 000000000000..7950667c190c --- /dev/null +++ b/pkgs/development/libraries/imath/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation rec { + pname = "imath"; + version = "3.0.5"; + + src = fetchFromGitHub { + owner = "AcademySoftwareFoundation"; + repo = "imath"; + rev = "v${version}"; + sha256 = "0nwf8622j01p699nkkbal6xxs1snzzhz4cn6d76yppgvdhgyahsc"; + }; + + nativeBuildInputs = [ cmake ]; + + meta = with lib; { + description = "Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics"; + homepage = "https://github.com/AcademySoftwareFoundation/Imath"; + license = licenses.bsd3; + maintainers = with maintainers; [ paperdigits ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7bcce0f3053d..dbb5b1e2c171 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18004,6 +18004,8 @@ with pkgs; opencv = opencv4; + imath = callPackage ../development/libraries/imath { }; + openexr = callPackage ../development/libraries/openexr { }; openexrid-unstable = callPackage ../development/libraries/openexrid-unstable { };