From 104244ad0303edfde4f5cfafefd5b3677db2c39d Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Tue, 10 Aug 2021 20:37:22 +0200 Subject: [PATCH] add Desktop Item --- pkgs/soundux/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/soundux/default.nix b/pkgs/soundux/default.nix index cb20ce6..120ea9d 100644 --- a/pkgs/soundux/default.nix +++ b/pkgs/soundux/default.nix @@ -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";