From ba98ad04f280f27006ffb2353dc429d136e5fb7b Mon Sep 17 00:00:00 2001 From: Merikei <73759842+Merikei@users.noreply.github.com> Date: Sat, 1 Nov 2025 02:04:54 +0000 Subject: [PATCH] xlights: add .desktop file & icon --- pkgs/by-name/xl/xlights/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/xl/xlights/package.nix b/pkgs/by-name/xl/xlights/package.nix index 98d31d1a47c1..8f8787242ba0 100644 --- a/pkgs/by-name/xl/xlights/package.nix +++ b/pkgs/by-name/xl/xlights/package.nix @@ -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";