openexr_3: enable tests

This commit is contained in:
Robert Scott 2022-01-03 17:50:36 +00:00
parent 04c0fa2d3a
commit c893059836

View file

@ -28,9 +28,18 @@ stdenv.mkDerivation rec {
})
];
# 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 '/var/tmp' "$TMPDIR"
done
'';
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ imath zlib ];
doCheck = true;
meta = with lib; {
description = "A high dynamic-range (HDR) image file format";
homepage = "https://www.openexr.com/";