Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / corectrl / polkit-dir.patch
blob85b0f765bebe621bfef94e9cddc85ece9a80e749
1 diff --git a/src/helper/CMakeLists.txt b/src/helper/CMakeLists.txt
2 index 1b7ed7c..757748c 100644
3 --- a/src/helper/CMakeLists.txt
4 +++ b/src/helper/CMakeLists.txt
5 @@ -22,15 +22,7 @@ message("D-Bus files will be installed into ${DBUS_DATADIR_PREFIX_DIR}/dbus-1")
7 # Find polkit
8 pkg_check_modules(POLKIT REQUIRED polkit-gobject-1)
9 -execute_process(
10 - COMMAND pkg-config --variable=policydir polkit-gobject-1
11 - RESULT_VARIABLE POLKIT_POLICY_INSTALL_DIR_RESULT
12 - OUTPUT_VARIABLE POLKIT_POLICY_INSTALL_DIR
13 - OUTPUT_STRIP_TRAILING_WHITESPACE
15 -if(NOT POLKIT_POLICY_INSTALL_DIR_RESULT EQUAL "0")
16 - message(FATAL_ERROR "Failed to retrieve Polkit `policydir` variable using pkg-config")
17 -endif()
18 +option(POLKIT_POLICY_INSTALL_DIR "Polkit policy directory")
20 list(APPEND PROCESS_MONITOR_SRC
21 pmon/processmonitor.cpp