mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
lenovo-legion: fix desktop icons
This commit is contained in:
parent
ca93cf6cb3
commit
920f39c1c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user