atlauncher: fix icon

This commit is contained in:
GetPsyched
2023-09-25 23:17:20 +05:30
parent 345f01c425
commit 52872745ca

View File

@@ -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" ];
})