17 stdenv.mkDerivation rec {
18 pname = "openimageio";
21 src = fetchFromGitHub {
22 owner = "OpenImageIO";
25 hash = "sha256-I2/JPmUBDb0bw7qbSZcAkYHB2q2Uo7En7ZurMwWhg/M=";
28 # Workaround broken zlib version detecion in CMake < 3.37.
30 substituteInPlace ./src/cmake/Config.cmake.in \
31 --replace " @ZLIB_VERSION@" ""
34 outputs = [ "bin" "out" "dev" "doc" ];
53 propagatedBuildInputs = [
61 "-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkg-config
62 # Do not install a copy of fmt header files
63 "-DINTERNALIZE_FMT=OFF"
67 substituteInPlace $dev/lib/cmake/OpenImageIO/OpenImageIOTargets-*.cmake \
68 --replace "\''${_IMPORT_PREFIX}/lib/lib" "$out/lib/lib"
72 homepage = "https://openimageio.org";
73 description = "A library and tools for reading and writing images";
74 license = licenses.bsd3;
75 maintainers = with maintainers; [ goibhniu ];
76 platforms = platforms.unix;