nixpkgs/pkgs/by-name/co/corectrl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

91 lines
1.9 KiB
Nix
Raw Normal View History

{
botan3,
extra-cmake-modules,
fetchFromGitLab,
hwdata,
lib,
libdrm,
libsForQt5,
mesa-demos,
polkit,
procps,
pugixml,
spdlog,
stdenv,
util-linux,
vulkan-tools,
}:
2020-10-15 01:05:19 +00:00
stdenv.mkDerivation (finalAttrs: {
2020-10-15 01:05:19 +00:00
pname = "corectrl";
2024-10-14 18:25:20 +00:00
version = "1.4.2";
2020-10-15 01:05:19 +00:00
src = fetchFromGitLab {
owner = "corectrl";
repo = "corectrl";
rev = "refs/tags/v${finalAttrs.version}";
2024-10-14 18:25:20 +00:00
hash = "sha256-WOljOakh177om7tLlroFwWO4gYsarfTCeVXX6+dmZs4=";
2020-10-15 01:05:19 +00:00
};
nativeBuildInputs = [
extra-cmake-modules
libsForQt5.wrapQtAppsHook
2020-10-15 01:05:19 +00:00
];
2020-10-15 01:05:19 +00:00
buildInputs = [
botan3
libdrm # TODO: report upstream that libdrm is not detected at configure time
libsForQt5.karchive
libsForQt5.kauth
libsForQt5.qtbase
libsForQt5.qtcharts
libsForQt5.qtquickcontrols2
libsForQt5.qtsvg
libsForQt5.qttools
libsForQt5.qtxmlpatterns
libsForQt5.quazip
mesa-demos
polkit
procps
pugixml
spdlog
util-linux
vulkan-tools
];
patches = [
./polkit-dir.patch
2020-10-15 01:05:19 +00:00
];
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"
];
2021-05-16 00:57:38 +00:00
runtimeInputs = [
hwdata
mesa-demos
procps
util-linux
vulkan-tools
];
2020-10-15 01:05:19 +00:00
qrWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath finalAttrs.runtimeInputs}"
];
2020-10-15 01:05:19 +00:00
meta = {
2020-10-15 01:05:19 +00:00
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 ];
2020-10-15 01:05:19 +00:00
};
})