corectrl: modernize
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
68ff98fb84
commit
804ba7d9d9
@ -1,49 +1,42 @@
|
|||||||
{ lib, stdenv
|
{
|
||||||
, fetchFromGitLab
|
botan3,
|
||||||
, extra-cmake-modules
|
extra-cmake-modules,
|
||||||
, botan3
|
fetchFromGitLab,
|
||||||
, libdrm
|
hwdata,
|
||||||
, hwdata
|
lib,
|
||||||
, mesa-demos
|
libdrm,
|
||||||
, polkit
|
libsForQt5,
|
||||||
, procps
|
mesa-demos,
|
||||||
, pugixml
|
polkit,
|
||||||
, spdlog
|
procps,
|
||||||
, util-linux
|
pugixml,
|
||||||
, vulkan-tools
|
spdlog,
|
||||||
, libsForQt5
|
stdenv,
|
||||||
} :
|
util-linux,
|
||||||
|
vulkan-tools,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "corectrl";
|
pname = "corectrl";
|
||||||
version = "1.4.2";
|
version = "1.4.2";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "corectrl";
|
owner = "corectrl";
|
||||||
repo = "corectrl";
|
repo = "corectrl";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${finalAttrs.version}";
|
||||||
hash = "sha256-WOljOakh177om7tLlroFwWO4gYsarfTCeVXX6+dmZs4=";
|
hash = "sha256-WOljOakh177om7tLlroFwWO4gYsarfTCeVXX6+dmZs4=";
|
||||||
};
|
};
|
||||||
patches = [
|
|
||||||
./polkit-dir.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
extra-cmake-modules
|
extra-cmake-modules
|
||||||
libsForQt5.wrapQtAppsHook
|
libsForQt5.wrapQtAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
botan3
|
botan3
|
||||||
|
libdrm # TODO: report upstream that libdrm is not detected at configure time
|
||||||
libsForQt5.karchive
|
libsForQt5.karchive
|
||||||
libsForQt5.kauth
|
libsForQt5.kauth
|
||||||
libdrm
|
|
||||||
mesa-demos
|
|
||||||
polkit
|
|
||||||
procps
|
|
||||||
pugixml
|
|
||||||
spdlog
|
|
||||||
util-linux
|
|
||||||
vulkan-tools
|
|
||||||
libsForQt5.qtbase
|
libsForQt5.qtbase
|
||||||
libsForQt5.qtcharts
|
libsForQt5.qtcharts
|
||||||
libsForQt5.qtquickcontrols2
|
libsForQt5.qtquickcontrols2
|
||||||
@ -51,24 +44,38 @@ stdenv.mkDerivation rec{
|
|||||||
libsForQt5.qttools
|
libsForQt5.qttools
|
||||||
libsForQt5.qtxmlpatterns
|
libsForQt5.qtxmlpatterns
|
||||||
libsForQt5.quazip
|
libsForQt5.quazip
|
||||||
|
mesa-demos
|
||||||
|
polkit
|
||||||
|
procps
|
||||||
|
pugixml
|
||||||
|
spdlog
|
||||||
|
util-linux
|
||||||
|
vulkan-tools
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./polkit-dir.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DWITH_PCI_IDS_PATH=${hwdata}/share/hwdata/pci.ids"
|
|
||||||
"-DINSTALL_DBUS_FILES_IN_PREFIX=true"
|
"-DINSTALL_DBUS_FILES_IN_PREFIX=true"
|
||||||
"-DPOLKIT_POLICY_INSTALL_DIR=${placeholder "out"}/share/polkit-1/actions"
|
"-DPOLKIT_POLICY_INSTALL_DIR=${placeholder "out"}/share/polkit-1/actions"
|
||||||
|
"-DWITH_PCI_IDS_PATH=${hwdata}/share/hwdata/pci.ids"
|
||||||
];
|
];
|
||||||
|
|
||||||
runtimeDeps = [ hwdata mesa-demos vulkan-tools util-linux procps ];
|
runtimeInputs = [
|
||||||
binPath = lib.makeBinPath runtimeDeps;
|
hwdata
|
||||||
|
mesa-demos
|
||||||
|
procps
|
||||||
|
util-linux
|
||||||
|
vulkan-tools
|
||||||
|
];
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
qrWrapperArgs = [
|
||||||
|
"--prefix PATH : ${lib.makeBinPath finalAttrs.runtimeInputs}"
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
meta = {
|
||||||
wrapQtApp $out/bin/corectrl --prefix PATH ":" ${binPath}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://gitlab.com/corectrl/corectrl/";
|
homepage = "https://gitlab.com/corectrl/corectrl/";
|
||||||
description = "Control your computer hardware via application profiles";
|
description = "Control your computer hardware via application profiles";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -76,9 +83,8 @@ stdenv.mkDerivation rec{
|
|||||||
to control with ease your computer hardware using application profiles. It
|
to control with ease your computer hardware using application profiles. It
|
||||||
aims to be flexible, comfortable and accessible to regular users.
|
aims to be flexible, comfortable and accessible to regular users.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with maintainers; [ Scrumplex ];
|
maintainers = with lib.maintainers; [ Scrumplex ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
# TODO: report upstream that libdrm is not detected at configure time
|
|
||||||
|
Loading…
Reference in New Issue
Block a user