3
0
Fork 0
forked from mirrors/nixpkgs

exiv2: fix paths in *.cmake

The recent merge #131868 (2c1ce604) broke digikam build through this.
This commit is contained in:
Vladimír Čunát 2022-02-20 17:56:01 +01:00
parent d5f2378729
commit 07dd74b828
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; {