add Desktop Item
This commit is contained in:
		
							parent
							
								
									4f10ba96a2
								
							
						
					
					
						commit
						104244ad03
					
				@ -1,5 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  lib, stdenv, fetchFromGitHub, cmake, ninja, pkg-config, makeWrapper, wrapGAppsHook, 
 | 
			
		||||
  lib, stdenv, fetchFromGitHub, cmake, ninja, pkg-config, makeWrapper, wrapGAppsHook, makeDesktopItem, copyDesktopItems,
 | 
			
		||||
  libappindicator-gtk3, openssl, pipewire, pulseaudio, webkitgtk, xorg,
 | 
			
		||||
  libpulseaudio, libwnck3,
 | 
			
		||||
  downloaderSupport ? true, ffmpeg, youtube-dl
 | 
			
		||||
@ -37,7 +37,8 @@ stdenv.mkDerivation rec {
 | 
			
		||||
      ${lib.optionalString downloaderSupport "--prefix PATH \":\" " + downloaderPath}
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  nativeBuildInputs = [ cmake ninja pkg-config makeWrapper wrapGAppsHook ];
 | 
			
		||||
  nativeBuildInputs = [ cmake ninja pkg-config makeWrapper wrapGAppsHook copyDesktopItems ];
 | 
			
		||||
 | 
			
		||||
  buildInputs = [
 | 
			
		||||
    libappindicator-gtk3
 | 
			
		||||
    openssl
 | 
			
		||||
@ -48,6 +49,15 @@ stdenv.mkDerivation rec {
 | 
			
		||||
    xorg.libXtst
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  desktopItems = makeDesktopItem {
 | 
			
		||||
    name = "Soundux";
 | 
			
		||||
    exec = pname;
 | 
			
		||||
    desktopName = "Soundux";
 | 
			
		||||
    genericName = "Soundboard";
 | 
			
		||||
    categories = "Audio;Music;Player;AudioVideo;";
 | 
			
		||||
    comment = "A universal soundboard that uses PulseAudio modules or PipeWire linking";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    homepage = "https://soundux.rocks/";
 | 
			
		||||
    description = "cross-platform soundboard";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user