3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/corectrl/default.nix
K900 729d0cf1e0 corectrl: 1.2.7 -> 1.3.1
Also fixes build after the staging merge.
2022-10-22 17:45:51 +03:00

89 lines
1.8 KiB
Nix

{ lib, stdenv
, fetchFromGitLab
, extra-cmake-modules
, botan2
, karchive
, kauth
, libdrm
, hwdata
, glxinfo
, polkit
, procps
, util-linux
, vulkan-tools
, qtbase
, qtcharts
, qtquickcontrols2
, qtsvg
, qttools
, qtxmlpatterns
, quazip
, wrapQtAppsHook
} :
stdenv.mkDerivation rec{
pname = "corectrl";
version = "1.3.1";
src = fetchFromGitLab {
owner = "corectrl";
repo = "corectrl";
rev = "v${version}";
sha256 = "sha256-mVMyXpNhwljxsAvrKeHPxUSfdF/mfxG157T13Kb8PnE=";
};
patches = [
./polkit-dir.patch
];
nativeBuildInputs = [
extra-cmake-modules
wrapQtAppsHook
];
buildInputs = [
botan2
karchive
kauth
libdrm
glxinfo
polkit
procps
util-linux
vulkan-tools
qtbase
qtcharts
qtquickcontrols2
qtsvg
qttools
qtxmlpatterns
quazip
];
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;
dontWrapQtApps = true;
postInstall = ''
wrapQtApp $out/bin/corectrl --prefix PATH ":" ${binPath}
'';
meta = with lib; {
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