mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
78 lines
1.6 KiB
Nix
78 lines
1.6 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, extra-cmake-modules
|
|
, botan2
|
|
, karchive
|
|
, kauth
|
|
, libdrm
|
|
, hwdata
|
|
, mesa-demos
|
|
, procps
|
|
, util-linux
|
|
, vulkan-tools
|
|
, qtbase
|
|
, qtcharts
|
|
, qtquickcontrols2
|
|
, qtsvg
|
|
, qttools
|
|
, qtxmlpatterns
|
|
, wrapQtAppsHook
|
|
} :
|
|
|
|
stdenv.mkDerivation rec{
|
|
pname = "corectrl";
|
|
version = "1.1.3";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "corectrl";
|
|
repo = "corectrl";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xRyc7FYzG8MnhQ8DjIUHYLeUZCZQdi4j1v1fG7F0+G8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
extra-cmake-modules
|
|
wrapQtAppsHook
|
|
];
|
|
buildInputs = [
|
|
botan2
|
|
karchive
|
|
kauth
|
|
libdrm
|
|
mesa-demos
|
|
procps
|
|
util-linux
|
|
vulkan-tools
|
|
qtbase
|
|
qtcharts
|
|
qtquickcontrols2
|
|
qtsvg
|
|
qttools
|
|
qtxmlpatterns
|
|
];
|
|
|
|
cmakeFlags = [ "-DWITH_PCI_IDS_PATH=${hwdata}/share/hwdata/pci.ids" ];
|
|
|
|
runtimeDeps = [ hwdata mesa-demos vulkan-tools ];
|
|
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
|