-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mcontrolcenter: init at 0.4.1 #251816
mcontrolcenter: init at 0.4.1 #251816
Conversation
MControlCenter provides a relatively full-featured control panel for MSI laptops, written in Qt. It allows users to control MSI laptop power plans, fan speed, battery charging limits, keyboard backlight settings, USB power sharing and more. The application comes with strong desktop integration: shortcuts, taskbar item, etc. etc. -- screenshots here: https://github.com/dmitry-s93/MControlCenter/blob/main/README.md This package has been previous requested by the NixOS community: NixOS#244881 The package comes with a patch that corrects MControlCenter's path to the `modprobe` binary, allowing it to automatically load the `ec_sys` kernel module (included with NixOS by default) with the right settings when launched. This NixOS package has been fully tested on a NixOS Plasma5 desktop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late review. There are a lot of open PRs and not enough reviewers.
|
||
meta = with lib; { | ||
homepage = "https://github.com/dmitry-s93/MControlCenter"; | ||
description = "An application that allows you to change the settings of MSI laptops running Linux."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = "An application that allows you to change the settings of MSI laptops running Linux."; | |
description = "Tool to change the settings of MSI laptops running Linux"; |
meta = with lib; { | ||
homepage = "https://github.com/dmitry-s93/MControlCenter"; | ||
description = "An application that allows you to change the settings of MSI laptops running Linux."; | ||
licencse = licenses.gpl3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
licencse = licenses.gpl3; | |
licencse = licenses.gpl3Plus; |
https://github.com/dmitry-s93/MControlCenter/blob/main/src/main.cpp#L8
"-DENABLE_INSTALL=ON" | ||
]; | ||
|
||
installPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
installPhase = '' | |
installPhase = '' | |
runHook preInstall |
echo "Name=mcontrolcenter.helper" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service | ||
echo "Exec=$out/libexec/mcontrolcenter-helper" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service | ||
echo "User=root" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
''; | |
runHook postInstall | |
''; |
]; | ||
|
||
buildInputs = [ | ||
pkgs.cmake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkgs.cmake |
]; | ||
|
||
nativeBuildInputs = [ | ||
wrapQtAppsHook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrapQtAppsHook | |
cmake | |
wrapQtAppsHook |
@@ -0,0 +1,62 @@ | |||
{ pkgs, lib, stdenv, qtbase, wrapQtAppsHook, qttools, makeDesktopItem, copyDesktopItems, fetchFromGitHub }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ pkgs, lib, stdenv, qtbase, wrapQtAppsHook, qttools, makeDesktopItem, copyDesktopItems, fetchFromGitHub }: | |
{ pkgs, lib, stdenv, qtbase, wrapQtAppsHook, qttools, makeDesktopItem, copyDesktopItems, fetchFromGitHub, cmake }: |
@@ -0,0 +1,62 @@ | |||
{ pkgs, lib, stdenv, qtbase, wrapQtAppsHook, qttools, makeDesktopItem, copyDesktopItems, fetchFromGitHub }: | |||
|
|||
stdenv.mkDerivation (finalAttrs: rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stdenv.mkDerivation (finalAttrs: rec { | |
stdenv.mkDerivation (finalAttrs: { |
@@ -0,0 +1,2 @@ | |||
{ pkgs ? import <nixpkgs> {} }: | |||
pkgs.libsForQt5.callPackage ./derivation.nix {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually, this line would be in pkgs/top-level/all-packages.nix
.
Also please don't try to import <nixpkgs>
in nixpkgs.
I would consider closing this pull request. I contacted personally the author and he is not interested in completing it any more, he also encouraged me to take over the work if I have a need for this package. I think is better to move the effort to #306216 and try to get this package merged. |
#306216 has just been merged, mcontrolcenter is now into master, there is no need for this pull request any more, please can we close it? |
MControlCenter provides a relatively full-featured control panel for MSI laptops, written in Qt. It allows users to control MSI laptop power plans, fan speed, battery charging limits, keyboard backlight settings, USB power sharing and more.
The application comes with strong desktop integration: shortcuts, taskbar item, etc. etc. -- screenshots here:
https://github.com/dmitry-s93/MControlCenter/blob/main/README.md
This package has been previous requested by the NixOS community: #244881
The package comes with a patch that corrects MControlCenter's path to the
modprobe
binary, allowing it to automatically load theec_sys
kernel module (included with NixOS by default) with the right settings when launched.This NixOS package has been fully tested on a NixOS Plasma5 desktop.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)