From 264f2008fc8ff3264bd119055aea399c3384b84e Mon Sep 17 00:00:00 2001 From: Anatolii Prylutskyi Date: Sun, 27 Mar 2022 13:01:36 +0300 Subject: [PATCH] mictray: init at 0.2.5 --- pkgs/tools/audio/mictray/default.nix | 53 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 55 insertions(+) create mode 100644 pkgs/tools/audio/mictray/default.nix diff --git a/pkgs/tools/audio/mictray/default.nix b/pkgs/tools/audio/mictray/default.nix new file mode 100644 index 000000000000..e757bac96682 --- /dev/null +++ b/pkgs/tools/audio/mictray/default.nix @@ -0,0 +1,53 @@ +{ fetchFromGitHub +, gtk3 +, lib +, libgee +, libnotify +, meson +, ninja +, pkg-config +, pulseaudio +, stdenv +, vala +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "mictray"; + version = "0.2.5"; + + src = fetchFromGitHub { + owner = "Junker"; + repo = "mictray"; + rev = "1f879aeda03fbe87ae5a761f46c042e09912e1c0"; + sha256 = "0achj6r545c1sigls79c8qdzryz3sgldcyzd3pwak1ymim9i9c74"; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + vala + wrapGAppsHook + ]; + + buildInputs = [ + gtk3 + libgee + libnotify + pulseaudio + ]; + + doCheck = true; + + meta = with lib; { + homepage = "https://github.com/Junker/mictray"; + description = "System tray application for microphone"; + longDescription = '' + MicTray is a Lightweight system tray application which lets you control the microphone state and volume. + ''; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = [ maintainers.anpryl ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 69e0f05c77ba..796de103a5a5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34991,4 +34991,6 @@ with pkgs; honeytail = callPackage ../servers/tracing/honeycomb/honeytail { }; honeyvent = callPackage ../servers/tracing/honeycomb/honeyvent { }; + + mictray = callPackage ../tools/audio/mictray { }; }