summary refs log tree commit diff
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-02-20 17:56:01 +0100
committerVladimír Čunát <v@cunat.cz>2022-02-20 17:56:01 +0100
commit07dd74b828f367a513935e4fccdd4c32fdcddc19 (patch)
treeb859845880e304e97fb64720c0e442ec3658c959
parentd5f237872975e6fb6f76eef1368b5634ffcd266f (diff)
downloadnixpkgs-07dd74b828f367a513935e4fccdd4c32fdcddc19.tar
nixpkgs-07dd74b828f367a513935e4fccdd4c32fdcddc19.tar.gz
nixpkgs-07dd74b828f367a513935e4fccdd4c32fdcddc19.tar.bz2
nixpkgs-07dd74b828f367a513935e4fccdd4c32fdcddc19.tar.lz
nixpkgs-07dd74b828f367a513935e4fccdd4c32fdcddc19.tar.xz
nixpkgs-07dd74b828f367a513935e4fccdd4c32fdcddc19.tar.zst
nixpkgs-07dd74b828f367a513935e4fccdd4c32fdcddc19.zip
exiv2: fix paths in *.cmake
The recent merge #131868 (2c1ce604) broke digikam build through this.
-rw-r--r--pkgs/development/libraries/exiv2/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/exiv2/default.nix b/pkgs/development/libraries/exiv2/default.nix
index d970f376d09..f352714d237 100644
--- a/pkgs/development/libraries/exiv2/default.nix
+++ b/pkgs/development/libraries/exiv2/default.nix
@@ -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; {