diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2023-10-18 23:48:09 +0200 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2023-10-18 23:48:22 +0200 |
commit | 68766ab4a884bcfb52e5a2b05a8bb812142423a7 (patch) | |
tree | 74bf6c54f52706868c1276e9f7bb92e3f2f87f04 /pkgs/by-name/db | |
parent | 99202824be73c502945b3fdbd651f724a2361671 (diff) |
dbus-cpp: Fix pkg-config file
lomiri.mediascanner2 errored due to includedir being a non-existent path. TIL our pkg-config patcher requires ${prefix} to work.
Diffstat (limited to 'pkgs/by-name/db')
-rw-r--r-- | pkgs/by-name/db/dbus-cpp/package.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/by-name/db/dbus-cpp/package.nix b/pkgs/by-name/db/dbus-cpp/package.nix index 6ad4c355b6adb..2e834111c9d9e 100644 --- a/pkgs/by-name/db/dbus-cpp/package.nix +++ b/pkgs/by-name/db/dbus-cpp/package.nix @@ -60,6 +60,10 @@ stdenv.mkDerivation (finalAttrs: { # Warning on aarch64-linux breaks build due to -Werror substituteInPlace CMakeLists.txt \ --replace '-Werror' "" + + # pkg-config output patching hook expects prefix variable here + substituteInPlace data/dbus-cpp.pc.in \ + --replace 'includedir=''${exec_prefix}' 'includedir=''${prefix}' '' + lib.optionalString (!finalAttrs.doCheck) '' sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt ''; |