Running nixpkgs-update (https://github.com/NixOS/infra/blob/main/non-critical-infra/modules/nixpkgs-update/README.md) with UPDATE_INFO: openexr 3.5.2 -> 3.5.5 https://github.com/AcademySoftwareFoundation/openexr/releases attrpath: openexr Checking auto update branch... No auto update branch exists Old version 3.5.2" not present in staging derivation file with contents: { lib, stdenv, fetchFromGitHub, cmake, ctestCheckHook, imath, libdeflate, pkg-config, libjxl, pkgsCross, python3Packages, }: stdenv.mkDerivation (finalAttrs: { pname = "openexr"; version = "3.5.4"; src = fetchFromGitHub { owner = "AcademySoftwareFoundation"; repo = "openexr"; tag = "v${finalAttrs.version}"; hash = "sha256-IUo2VLBlAiOvUyz+KJ/PBOIhJ7nOv9EwmuGgDF+G8os="; }; outputs = [ "bin" "dev" "out" "doc" ]; patches = # Disable broken test on musl libc # https://github.com/AcademySoftwareFoundation/openexr/issues/1556 lib.optional stdenv.hostPlatform.isMusl ./disable-iex-test.patch; # tests are determined to use /var/tmp on unix postPatch = '' cat <(find . -name tmpDir.h) <(echo src/test/OpenEXRCoreTest/main.cpp) | while read -r f ; do substituteInPlace $f --replace-fail '/var/tmp' "$TMPDIR" done ''; cmakeFlags = lib.optional stdenv.hostPlatform.isStatic "-DCMAKE_SKIP_RPATH=ON"; nativeBuildInputs = [ cmake pkg-config ]; propagatedBuildInputs = [ imath libdeflate ]; nativeCheckInputs = [ ctestCheckHook ]; strictDeps = true; # Without 'sse' enforcement tests fail on i686 as due to excessive precision as: # error reading back channel B pixel 21,-76 got -nan expected -nan env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isi686 "-msse2 -mfpmath=sse"; # https://github.com/AcademySoftwareFoundation/openexr/issues/1400 doCheck = !stdenv.hostPlatform.isAarch32; disabledTests = lib.optionals stdenv.hostPlatform.isBigEndian [ # https://github.com/AcademySoftwareFoundation/openexr/issues/1175 # Not sure if these issues are specific to the tests, or if openexr in general is borked on big-endian. # Optimistically assuming the former here. "OpenEXRCore.testDWAACompression" "OpenEXRCore.testDWABCompression" "OpenEXR.testCompositeDeepScanLine" "OpenEXR.testCompression" "OpenEXR.testCRgba" "OpenEXR.testDeepScanLineBasic" "OpenEXR.testDeepScanLineMultipleRead" "OpenEXR.testDeepTiledBasic" "OpenEXR.testFutureProofing" "OpenEXR.testMultiPartFileMixingBasic" "OpenEXR.testRgba" "OpenEXR.testRgbaThreading" "OpenEXR.testSampleImages" "OpenEXR.testSharedFrameBuffer" "OpenEXR.testTiledRgba" "OpenEXRUtil.testDeepImage" "OpenEXRUtil.testIO" ]; passthru.tests = { inherit libjxl; musl = pkgsCross.musl64.openexr; python = python3Packages.openexr; }; __structuredAttrs = true; meta = { description = "High dynamic-range (HDR) image file format"; homepage = "https://www.openexr.com"; changelog = "https://github.com/AcademySoftwareFoundation/OpenEXR/blob/v${finalAttrs.version}/CHANGES.md"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ paperdigits ]; platforms = lib.platforms.all; }; })