From 30b5e869255063fa871ecfee6fdfb1d22ee2ee5c Mon Sep 17 00:00:00 2001 From: Mica Semrick Date: Mon, 16 Aug 2021 20:29:53 -0700 Subject: [PATCH] openexr_3: init at 3.0.5 --- pkgs/development/libraries/openexr/3.nix | 32 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/openexr/3.nix diff --git a/pkgs/development/libraries/openexr/3.nix b/pkgs/development/libraries/openexr/3.nix new file mode 100644 index 000000000000..03539076e6f2 --- /dev/null +++ b/pkgs/development/libraries/openexr/3.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, fetchFromGitHub +, zlib +, cmake +, imath +}: + +stdenv.mkDerivation rec { + pname = "openexr"; + version = "3.0.5"; + + outputs = [ "bin" "dev" "out" "doc" ]; + + src = fetchFromGitHub { + owner = "AcademySoftwareFoundation"; + repo = "openexr"; + rev = "v${version}"; + sha256 = "0inmpby1syyxxzr0sazqvpb8j63vpj09vpkp4xi7m2qd4rxynkph"; + }; + + nativeBuildInputs = [ cmake ]; + propagatedBuildInputs = [ imath zlib ]; + + meta = with lib; { + description = "A high dynamic-range (HDR) image file format"; + homepage = "https://www.openexr.com/"; + 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 dbb5b1e2c171..56f3a781ed6e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18006,7 +18006,9 @@ with pkgs; imath = callPackage ../development/libraries/imath { }; - openexr = callPackage ../development/libraries/openexr { }; + openexr = openexr_2; + openexr_2 = callPackage ../development/libraries/openexr { }; + openexr_3 = callPackage ../development/libraries/openexr/3.nix { }; openexrid-unstable = callPackage ../development/libraries/openexrid-unstable { };