mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
heroic: fix icon sizes
By default, the 128x128 icon was installed as a 512x512. The modification uses the svg icon present in the deployment to add the scalable one. This should fix: https://github.com/NixOS/nixpkgs/issues/348764
This commit is contained in:
parent
209b7f634b
commit
b321d3d584
@ -88,9 +88,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
substituteInPlace "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" \
|
||||
--replace-fail "Exec=heroic-run" "Exec=heroic"
|
||||
mkdir -p "$out/share/applications" "$out/share/icons/hicolor/512x512/apps"
|
||||
mkdir -p "$out/share/applications" "$out/share/icons/hicolor/scalable/apps"
|
||||
ln -s "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" "$out/share/applications"
|
||||
ln -s "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.png" "$out/share/icons/hicolor/512x512/apps"
|
||||
ln -s "$out/share/heroic/src/frontend/assets/heroic-icon.svg" "$out/share/icons/hicolor/scalable/apps/com.heroicgameslauncher.hgl.svg"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user