Merge pull request #305055 from Rexcrazy804/update-lenovo-legion

lenovo-legion: 0.0.9 -> 0.0.12
This commit is contained in:
Ulrik Strid 2024-04-22 20:46:21 +02:00 committed by GitHub
commit 51da29234d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 7 deletions

View File

@ -2,13 +2,13 @@
python3.pkgs.buildPythonApplication rec {
pname = "lenovo-legion-app";
version = "0.0.9";
version = "0.0.12";
src = fetchFromGitHub {
owner = "johnfanv2";
repo = "LenovoLegionLinux";
rev = "v${version}-prerelease";
hash = "sha256-PQdxfDfW3sn0wWjmsPoAt3HZ43PS3Tyez3/0KEVVZQg=";
hash = "sha256-BNrRv9EBmNINQbAw+BzVxKl/XoDgH1tsNZHJxfSpNoU=";
};
sourceRoot = "${src.name}/python/legion_linux";
@ -17,6 +17,7 @@ python3.pkgs.buildPythonApplication rec {
propagatedBuildInputs = with python3.pkgs; [
pyqt5
pyqt6
argcomplete
pyyaml
darkdetect
@ -26,13 +27,13 @@ python3.pkgs.buildPythonApplication rec {
postPatch = ''
substituteInPlace ./setup.cfg \
--replace "_VERSION" "${version}"
--replace-fail "_VERSION" "${version}"
substituteInPlace ../../extra/service/fancurve-set \
--replace "FOLDER=/etc/legion_linux/" "FOLDER=$out/share/legion_linux"
--replace-fail "FOLDER=/etc/legion_linux/" "FOLDER=$out/share/legion_linux"
substituteInPlace ./legion_linux/legion.py \
--replace "/etc/legion_linux" "$out/share/legion_linux"
substituteInPlace ./legion_linux/legion_gui{,_user}.desktop \
--replace "Icon=/usr/share/pixmaps/legion_logo.png" "Icon=legion_logo"
--replace-fail "/etc/legion_linux" "$out/share/legion_linux"
substituteInPlace ./legion_linux/legion_gui.desktop \
--replace-fail "Icon=/usr/share/pixmaps/legion_logo.png" "Icon=legion_logo"
'';
dontWrapQtApps = true;