xlights: add .desktop file & icon

This commit is contained in:
Merikei
2025-11-01 02:04:54 +00:00
parent 85f3b3e9fe
commit ba98ad04f2
+10
View File
@@ -13,6 +13,16 @@ appimageTools.wrapType2 rec {
hash = "sha256-k5HGk5t/ujPuOU/GlxhA+yKKXy0lq8YkxcQkTUVBYXM=";
};
appimageContents = appimageTools.extract { inherit pname version src; };
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/xlights.desktop $out/share/applications/xlights.desktop
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/256x256/apps/xlights.png \
$out/share/icons/hicolor/256x256/apps/xlights.png
substituteInPlace $out/share/applications/xlights.desktop \
--replace-fail 'Exec=xLights' 'Exec=xlights'
'';
meta = {
description = "Sequencer for lights with USB and E1.31 drivers";
homepage = "https://xlights.org";