add Desktop Item

This commit is contained in:
Daniel Olsen 2021-08-10 20:37:22 +02:00
parent 4f10ba96a2
commit 104244ad03
1 changed files with 12 additions and 2 deletions

View File

@ -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";