summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/misc/corectrl
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2020-10-14 22:05:19 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2020-10-25 23:11:40 -0300
commit846266d9af5fa0435693f30bca36f80ad1f6d8ad (patch)
treef415e21e27551cfa227be072ca1da92686492c75 /pkgs/applications/misc/corectrl
parentb7bb3aa6023bd32f04b1854ec1a8f6a9c34d3ba4 (diff)
corectrl: init at 1.1.1
Diffstat (limited to 'pkgs/applications/misc/corectrl')
-rw-r--r--pkgs/applications/misc/corectrl/default.nix74
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/applications/misc/corectrl/default.nix b/pkgs/applications/misc/corectrl/default.nix
new file mode 100644
index 000000000000..cee390d064d0
--- /dev/null
+++ b/pkgs/applications/misc/corectrl/default.nix
@@ -0,0 +1,74 @@
+{ stdenv
+, fetchFromGitLab
+, extra-cmake-modules
+, botan2
+, karchive
+, kauth
+, libdrm
+, mesa-demos
+, procps
+, utillinux
+, vulkan-tools
+, qtbase
+, qtcharts
+, qtquickcontrols2
+, qtsvg
+, qttools
+, qtxmlpatterns
+, wrapQtAppsHook
+} :
+
+stdenv.mkDerivation rec{
+ pname = "corectrl";
+ version = "1.1.1";
+
+ src = fetchFromGitLab {
+ owner = "corectrl";
+ repo = "corectrl";
+ rev = "v${version}";
+ sha256 = "sha256-YQDrxPqCa3OzNKd3UiAffqqvOrgbXmDFJGjYPetolyY=";
+ };
+
+ nativeBuildInputs = [
+ extra-cmake-modules
+ wrapQtAppsHook
+ ];
+ buildInputs = [
+ botan2
+ karchive
+ kauth
+ libdrm
+ mesa-demos
+ procps
+ utillinux
+ vulkan-tools
+ qtbase
+ qtcharts
+ qtquickcontrols2
+ qtsvg
+ qttools
+ qtxmlpatterns
+ ];
+
+ runtimeDeps = [ mesa-demos vulkan-tools ];
+ binPath = stdenv.lib.makeBinPath runtimeDeps;
+
+ dontWrapQtApps = true;
+
+ postInstall = ''
+ wrapQtApp $out/bin/corectrl --prefix PATH ":" ${binPath}
+ '';
+
+ meta = with stdenv.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