mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
Merge pull request #197234 from K900/corectrl-1.3.1
This commit is contained in:
commit
c498b63a56
@ -7,6 +7,7 @@
|
||||
, libdrm
|
||||
, hwdata
|
||||
, glxinfo
|
||||
, polkit
|
||||
, procps
|
||||
, util-linux
|
||||
, vulkan-tools
|
||||
@ -16,19 +17,23 @@
|
||||
, qtsvg
|
||||
, qttools
|
||||
, qtxmlpatterns
|
||||
, quazip
|
||||
, wrapQtAppsHook
|
||||
} :
|
||||
|
||||
stdenv.mkDerivation rec{
|
||||
pname = "corectrl";
|
||||
version = "1.2.7";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "corectrl";
|
||||
repo = "corectrl";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-X+S+k9LuZveNOV3X7fulsnk9GfGO1czWEvU41q9/cJI=";
|
||||
sha256 = "sha256-mVMyXpNhwljxsAvrKeHPxUSfdF/mfxG157T13Kb8PnE=";
|
||||
};
|
||||
patches = [
|
||||
./polkit-dir.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
extra-cmake-modules
|
||||
@ -40,6 +45,7 @@ stdenv.mkDerivation rec{
|
||||
kauth
|
||||
libdrm
|
||||
glxinfo
|
||||
polkit
|
||||
procps
|
||||
util-linux
|
||||
vulkan-tools
|
||||
@ -49,9 +55,14 @@ stdenv.mkDerivation rec{
|
||||
qtsvg
|
||||
qttools
|
||||
qtxmlpatterns
|
||||
quazip
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DWITH_PCI_IDS_PATH=${hwdata}/share/hwdata/pci.ids" ];
|
||||
cmakeFlags = [
|
||||
"-DWITH_PCI_IDS_PATH=${hwdata}/share/hwdata/pci.ids"
|
||||
"-DINSTALL_DBUS_FILES_IN_PREFIX=true"
|
||||
"-DPOLKIT_POLICY_INSTALL_DIR=${placeholder "out"}/share/polkit-1/actions"
|
||||
];
|
||||
|
||||
runtimeDeps = [ hwdata glxinfo vulkan-tools util-linux procps ];
|
||||
binPath = lib.makeBinPath runtimeDeps;
|
||||
|
21
pkgs/applications/misc/corectrl/polkit-dir.patch
Normal file
21
pkgs/applications/misc/corectrl/polkit-dir.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/src/helper/CMakeLists.txt b/src/helper/CMakeLists.txt
|
||||
index 1b7ed7c..757748c 100644
|
||||
--- a/src/helper/CMakeLists.txt
|
||||
+++ b/src/helper/CMakeLists.txt
|
||||
@@ -22,15 +22,7 @@ message("D-Bus files will be installed into ${DBUS_DATADIR_PREFIX_DIR}/dbus-1")
|
||||
|
||||
# Find polkit
|
||||
pkg_check_modules(POLKIT REQUIRED polkit-gobject-1)
|
||||
-execute_process(
|
||||
- COMMAND pkg-config --variable=policydir polkit-gobject-1
|
||||
- RESULT_VARIABLE POLKIT_POLICY_INSTALL_DIR_RESULT
|
||||
- OUTPUT_VARIABLE POLKIT_POLICY_INSTALL_DIR
|
||||
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
-)
|
||||
-if(NOT POLKIT_POLICY_INSTALL_DIR_RESULT EQUAL "0")
|
||||
- message(FATAL_ERROR "Failed to retrieve Polkit `policydir` variable using pkg-config")
|
||||
-endif()
|
||||
+option(POLKIT_POLICY_INSTALL_DIR "Polkit policy directory")
|
||||
|
||||
list(APPEND PROCESS_MONITOR_SRC
|
||||
pmon/processmonitor.cpp
|
Loading…
Reference in New Issue
Block a user