lenovo-legion: fix desktop icons

This commit is contained in:
Julius Marozas 2023-12-22 03:50:37 +01:00 committed by GitHub
parent ca93cf6cb3
commit 920f39c1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,8 @@ python3.pkgs.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "johnfanv2";
repo = "LenovoLegionLinux";
rev = "v${version}-prerelese";
hash = "sha256-P4vqzNX2nF4LnoQDOV8WEiXAICQCyjj9xPpFNvMu93k=";
rev = "v${version}-prerelease";
hash = "sha256-PQdxfDfW3sn0wWjmsPoAt3HZ43PS3Tyez3/0KEVVZQg=";
};
sourceRoot = "${src.name}/python/legion_linux";
@ -31,10 +31,8 @@ python3.pkgs.buildPythonApplication rec {
--replace "FOLDER=/etc/legion_linux/" "FOLDER=$out/share/legion_linux"
substituteInPlace ./legion_linux/legion.py \
--replace "/etc/legion_linux" "$out/share/legion_linux"
'';
postInstall = ''
cp ./legion_linux/legion_logo.png $out/${python3.sitePackages}/legion_logo.png
substituteInPlace ./legion_linux/legion_gui{,_user}.desktop \
--replace "Icon=/usr/share/pixmaps/legion_logo.png" "Icon=legion_logo"
'';
dontWrapQtApps = true;