10 stdenv.mkDerivation rec {
14 outputs = [ "bin" "dev" "out" "doc" ];
16 src = fetchFromGitHub {
17 owner = "AcademySoftwareFoundation";
20 sha256 = "sha256-N7XdDaDsYdx4TXvHplQDTvhHNUmW5rntdaTKua4C0es=";
25 name = "CVE-2021-45942.patch";
26 url = "https://github.com/AcademySoftwareFoundation/openexr/commit/11cad77da87c4fa2aab7d58dd5339e254db7937e.patch";
28 extraPrefix = "OpenEXR/IlmImf/";
29 sha256 = "1wa2jn6sa0n3phaqvklnlbgk1bz60y756ad4jk4d757pzpnannsy";
33 cmakeFlags = lib.optional stdenv.hostPlatform.isStatic "-DCMAKE_SKIP_RPATH=ON";
35 nativeBuildInputs = [ cmake ];
36 propagatedBuildInputs = [ ilmbase zlib ];
39 description = "A high dynamic-range (HDR) image file format";
40 homepage = "https://www.openexr.com/";
41 license = licenses.bsd3;
42 platforms = platforms.all;