openimageio2: Fix lib installation

This commit is contained in:
Jonas Heinrich 2022-07-23 11:03:01 +02:00
parent 064c07db9a
commit 0bc8d89833

View File

@ -52,6 +52,11 @@ stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkg-config
];
postFixup = ''
substituteInPlace $dev/lib/cmake/OpenImageIO/OpenImageIOTargets-*.cmake \
--replace "\''${_IMPORT_PREFIX}/lib/lib" "$out/lib/lib"
'';
meta = with lib; {
homepage = "http://www.openimageio.org";
description = "A library and tools for reading and writing images";