Merge #161104: exiv2: fix paths in *.cmake

This commit is contained in:
Vladimír Čunát 2022-02-24 10:12:40 +01:00
commit 3b2d630a2a
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -103,6 +103,15 @@ stdenv.mkDerivation rec {
remove-references-to -t ${stdenv.cc.cc} $lib/lib/*.so.*.*.* $out/bin/exiv2 $static/lib/*.a
'';
postFixup = ''
substituteInPlace "$dev"/lib/cmake/exiv2/exiv2Config.cmake --replace \
"set(_IMPORT_PREFIX \"$out\")" \
"set(_IMPORT_PREFIX \"$static\")"
substituteInPlace "$dev"/lib/cmake/exiv2/exiv2Config-*.cmake --replace \
"$lib/lib/libexiv2-xmp.a" \
"$static/lib/libexiv2-xmp.a"
'';
disallowedReferences = [ stdenv.cc.cc ];
meta = with lib; {