From ff41002b802a8d8dd77b60ca83e4f614feceeaf3 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Tue, 25 Feb 2020 23:25:43 -0500 Subject: [PATCH] exiv2: fix exiv2.pc file This fix comes from #71669. --- pkgs/development/libraries/exiv2/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/exiv2/default.nix b/pkgs/development/libraries/exiv2/default.nix index 425346df816e..dc7610ee1782 100644 --- a/pkgs/development/libraries/exiv2/default.nix +++ b/pkgs/development/libraries/exiv2/default.nix @@ -26,6 +26,11 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DEXIV2_BUILD_PO=ON" "-DEXIV2_BUILD_DOC=ON" + # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly + # (setting it to an absolute path causes include files to go to $out/$out/include, + # because the absolute path is interpreted with root at $out). + "-DCMAKE_INSTALL_INCLUDEDIR=include" + "-DCMAKE_INSTALL_LIBDIR=lib" ]; outputs = [ "out" "dev" "doc" "man" ];