push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/src/helper/CMakeLists.txt b/src/helper/CMakeLists.txt
index 38deb12..7bbaa81 100644
--- a/src/helper/CMakeLists.txt
+++ b/src/helper/CMakeLists.txt
@@ -27,8 +27,8 @@ message("D-Bus files will be installed into ${DBUS_DATADIR_PREFIX_DIR}/dbus-1")
option(POLKIT_POLICY_INSTALL_DIR "Polkit policy files installation directory" OFF)
# Find polkit
+pkg_check_modules(POLKIT REQUIRED polkit-gobject-1)
if(NOT POLKIT_POLICY_INSTALL_DIR)
- 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

View File

@@ -0,0 +1,91 @@
{
botan3,
fetchFromGitLab,
cmake,
pkg-config,
hwdata,
lib,
libdrm,
kdePackages,
mesa-demos,
polkit,
procps,
pugixml,
spdlog,
stdenv,
util-linux,
vulkan-tools,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "corectrl";
version = "1.5.1";
src = fetchFromGitLab {
owner = "corectrl";
repo = "corectrl";
tag = "v${finalAttrs.version}";
hash = "sha256-NwGrvDqImiyPc3AsL7rMwNG9na+AzZS6NvXQOc6VWHg=";
};
nativeBuildInputs = [
cmake
pkg-config
kdePackages.extra-cmake-modules
kdePackages.wrapQtAppsHook
];
buildInputs = [
botan3
libdrm # TODO: report upstream that libdrm is not detected at configure time
kdePackages.karchive
kdePackages.kauth
kdePackages.qtbase
kdePackages.qtcharts
kdePackages.qtsvg
kdePackages.qttools
kdePackages.quazip
mesa-demos
polkit
procps
pugixml
spdlog
util-linux
vulkan-tools
];
patches = [
./Always-locate-polkit-with-pkg-config.diff
];
cmakeFlags = [
"-DINSTALL_DBUS_FILES_IN_PREFIX=true"
"-DPOLKIT_POLICY_INSTALL_DIR=${placeholder "out"}/share/polkit-1/actions"
"-DWITH_PCI_IDS_PATH=${hwdata}/share/hwdata/pci.ids"
];
runtimeInputs = [
hwdata
mesa-demos
procps
util-linux
vulkan-tools
];
qtWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath finalAttrs.runtimeInputs}"
];
meta = {
homepage = "https://gitlab.com/corectrl/corectrl/";
description = "Control your computer hardware via application profiles";
longDescription = ''
CoreCtrl is a Free and Open Source GNU/Linux application that allows you
to control with ease your computer hardware using application profiles. It
aims to be flexible, comfortable and accessible to regular users.
'';
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ Scrumplex ];
};
})