Merge pull request #275948 from jul1u5/patch-1

lenovo-legion: fix desktop icons

authored by Ulrik Strid and committed by GitHub f1230023 1075ed8c

+4 -6
+4 -6
pkgs/os-specific/linux/lenovo-legion/app.nix
··· 7 7 src = fetchFromGitHub { 8 8 owner = "johnfanv2"; 9 9 repo = "LenovoLegionLinux"; 10 - rev = "v${version}-prerelese"; 11 - hash = "sha256-P4vqzNX2nF4LnoQDOV8WEiXAICQCyjj9xPpFNvMu93k="; 10 + rev = "v${version}-prerelease"; 11 + hash = "sha256-PQdxfDfW3sn0wWjmsPoAt3HZ43PS3Tyez3/0KEVVZQg="; 12 12 }; 13 13 14 14 sourceRoot = "${src.name}/python/legion_linux"; ··· 31 31 --replace "FOLDER=/etc/legion_linux/" "FOLDER=$out/share/legion_linux" 32 32 substituteInPlace ./legion_linux/legion.py \ 33 33 --replace "/etc/legion_linux" "$out/share/legion_linux" 34 - ''; 35 - 36 - postInstall = '' 37 - cp ./legion_linux/legion_logo.png $out/${python3.sitePackages}/legion_logo.png 34 + substituteInPlace ./legion_linux/legion_gui{,_user}.desktop \ 35 + --replace "Icon=/usr/share/pixmaps/legion_logo.png" "Icon=legion_logo" 38 36 ''; 39 37 40 38 dontWrapQtApps = true;