From 52872745ca2b35d410911bd890d8e0195bed12d6 Mon Sep 17 00:00:00 2001 From: GetPsyched Date: Mon, 25 Sep 2023 23:17:20 +0530 Subject: [PATCH] atlauncher: fix icon --- pkgs/games/atlauncher/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/games/atlauncher/default.nix b/pkgs/games/atlauncher/default.nix index 16092a2e37eb..439b7aaa6b25 100644 --- a/pkgs/games/atlauncher/default.nix +++ b/pkgs/games/atlauncher/default.nix @@ -9,6 +9,11 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-gHUYZaxADchikoCmAfqFjVbMYhhiwg2BZKctmww1Mlw="; }; + env.ICON = fetchurl { + url = "https://atlauncher.com/assets/images/logo.svg"; + hash = "sha256-XoqpsgLmkpa2SdjZvPkgg6BUJulIBIeu6mBsJJCixfo="; + }; + dontUnpack = true; buildInputs = [ ]; @@ -30,6 +35,10 @@ stdenv.mkDerivation (finalAttrs: { --suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" ${ lib.strings.optionalString withSteamRun ''--run "${steamrun} \\"'' } + + mkdir -p $out/share/icons/hicolor/scalable/apps + cp $ICON $out/share/icons/hicolor/scalable/apps/${finalAttrs.pname}.svg + runHook postInstall ''; @@ -37,10 +46,7 @@ stdenv.mkDerivation (finalAttrs: { (makeDesktopItem { name = finalAttrs.pname; exec = "${finalAttrs.pname} --no-launcher-update true"; - icon = fetchurl { - url = "https://avatars.githubusercontent.com/u/7068667"; - hash = "sha256-YmEkxf4rZxN3jhiib0UtdUDDcn9lw7IMbiEucBL7b9o="; - }; + icon = finalAttrs.pname; desktopName = "ATLauncher"; categories = [ "Game" ]; })