From b321d3d5843afd54619f79ee0ba7d7929454f1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viorel-C=C4=83t=C4=83lin=20R=C4=83pi=C8=9Beanu?= Date: Wed, 16 Oct 2024 02:07:05 +0300 Subject: [PATCH] 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 --- pkgs/games/heroic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix index a9c85e26b5132..131dea9c0285e 100644 --- a/pkgs/games/heroic/default.nix +++ b/pkgs/games/heroic/default.nix @@ -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 '';