diff options
author | OPNA2608 <opna2608@protonmail.com> | 2024-04-12 12:12:53 +0200 |
---|---|---|
committer | OPNA2608 <opna2608@protonmail.com> | 2024-04-12 12:13:32 +0200 |
commit | 4c958df482229b4f82e46eb0302987d478be7501 (patch) | |
tree | 9592ab480f19a6d84c820720e8cd87ce3df189f6 /pkgs/desktops/lomiri | |
parent | 04326b244c47b983282d61645c2822cf0e352931 (diff) |
lomiri.biometryd: Fix lack of output fixup in pkg-config file, update pkg-config call with new CMake option
Diffstat (limited to 'pkgs/desktops/lomiri')
-rw-r--r-- | pkgs/desktops/lomiri/services/biometryd/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/desktops/lomiri/services/biometryd/default.nix b/pkgs/desktops/lomiri/services/biometryd/default.nix index 418a39ebb6e02..d06ecf16942ef 100644 --- a/pkgs/desktops/lomiri/services/biometryd/default.nix +++ b/pkgs/desktops/lomiri/services/biometryd/default.nix @@ -38,12 +38,17 @@ stdenv.mkDerivation (finalAttrs: { ]; postPatch = '' - # Uses pkg_get_variable, cannot substitute prefix with that + # Substitute systemd's prefix in pkg-config call substituteInPlace data/CMakeLists.txt \ - --replace 'pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir)' 'set(SYSTEMD_SYSTEM_UNIT_DIR "''${CMAKE_INSTALL_PREFIX}/lib/systemd/system")' + --replace-fail 'pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir)' 'pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir DEFINE_VARIABLES prefix=''${CMAKE_INSTALL_PREFIX})' substituteInPlace src/biometry/qml/Biometryd/CMakeLists.txt \ - --replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" + --replace-fail "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" + + # For our automatic pkg-config output patcher to work, prefix must be used here + substituteInPlace data/biometryd.pc.in \ + --replace-fail 'libdir=''${exec_prefix}' 'libdir=''${prefix}' \ + --replace-fail 'includedir=''${exec_prefix}' 'includedir=''${prefix}' \ '' + lib.optionalString (!finalAttrs.doCheck) '' sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt ''; |