nixpkgs/pkgs/applications/misc/corectrl/default.nix

78 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-10-15 03:05:19 +02:00
, fetchFromGitLab
, extra-cmake-modules
, botan2
, karchive
, kauth
, libdrm
2021-05-16 02:57:38 +02:00
, hwdata
, glxinfo
2020-10-15 03:05:19 +02:00
, procps
2020-11-24 16:29:28 +01:00
, util-linux
2020-10-15 03:05:19 +02:00
, vulkan-tools
, qtbase
, qtcharts
, qtquickcontrols2
, qtsvg
, qttools
, qtxmlpatterns
, wrapQtAppsHook
} :
stdenv.mkDerivation rec{
pname = "corectrl";
2022-02-26 09:15:33 +01:00
version = "1.2.3";
2020-10-15 03:05:19 +02:00
src = fetchFromGitLab {
owner = "corectrl";
repo = "corectrl";
rev = "v${version}";
2022-02-26 09:15:33 +01:00
sha256 = "sha256-vMSIo4tfvEO6SVxB5aNBnHEn+PXN6wUfRAgUCwZEHKQ=";
2020-10-15 03:05:19 +02:00
};
nativeBuildInputs = [
extra-cmake-modules
wrapQtAppsHook
];
buildInputs = [
botan2
karchive
kauth
libdrm
glxinfo
2020-10-15 03:05:19 +02:00
procps
2020-11-24 16:29:28 +01:00
util-linux
2020-10-15 03:05:19 +02:00
vulkan-tools
qtbase
qtcharts
qtquickcontrols2
qtsvg
qttools
qtxmlpatterns
];
2021-05-16 02:57:38 +02:00
cmakeFlags = [ "-DWITH_PCI_IDS_PATH=${hwdata}/share/hwdata/pci.ids" ];
runtimeDeps = [ hwdata glxinfo vulkan-tools util-linux procps ];
2021-01-15 06:42:41 +01:00
binPath = lib.makeBinPath runtimeDeps;
2020-10-15 03:05:19 +02:00
dontWrapQtApps = true;
postInstall = ''
wrapQtApp $out/bin/corectrl --prefix PATH ":" ${binPath}
'';
meta = with lib; {
2020-10-15 03:05:19 +02: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 = licenses.gpl3Plus;
platforms = platforms.linux;
};
}
# TODO: report upstream that libdrm is not detected at configure time