diff --git a/pkgs/by-name/xl/xlights/package.nix b/pkgs/by-name/xl/xlights/package.nix index 547ea042748a..450c28ea209e 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-kTJD2xeclNApeSo1ALNI/XAwDY8tsBO0eMMQurtRF/M="; }; + 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";