atlauncher: fix icon
This commit is contained in:
@@ -9,6 +9,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
hash = "sha256-gHUYZaxADchikoCmAfqFjVbMYhhiwg2BZKctmww1Mlw=";
|
hash = "sha256-gHUYZaxADchikoCmAfqFjVbMYhhiwg2BZKctmww1Mlw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
env.ICON = fetchurl {
|
||||||
|
url = "https://atlauncher.com/assets/images/logo.svg";
|
||||||
|
hash = "sha256-XoqpsgLmkpa2SdjZvPkgg6BUJulIBIeu6mBsJJCixfo=";
|
||||||
|
};
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
buildInputs = [ ];
|
buildInputs = [ ];
|
||||||
@@ -30,6 +35,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" ${
|
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" ${
|
||||||
lib.strings.optionalString withSteamRun ''--run "${steamrun} \\"''
|
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
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -37,10 +46,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
(makeDesktopItem {
|
(makeDesktopItem {
|
||||||
name = finalAttrs.pname;
|
name = finalAttrs.pname;
|
||||||
exec = "${finalAttrs.pname} --no-launcher-update true";
|
exec = "${finalAttrs.pname} --no-launcher-update true";
|
||||||
icon = fetchurl {
|
icon = finalAttrs.pname;
|
||||||
url = "https://avatars.githubusercontent.com/u/7068667";
|
|
||||||
hash = "sha256-YmEkxf4rZxN3jhiib0UtdUDDcn9lw7IMbiEucBL7b9o=";
|
|
||||||
};
|
|
||||||
desktopName = "ATLauncher";
|
desktopName = "ATLauncher";
|
||||||
categories = [ "Game" ];
|
categories = [ "Game" ];
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user