diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix index bdd3a9aadc84..c74183e49995 100644 --- a/pkgs/desktops/xfce/default.nix +++ b/pkgs/desktops/xfce/default.nix @@ -111,6 +111,8 @@ makeScopeWithSplicing' { #### PANEL PLUGINS + xfce4-alsa-plugin = callPackage ./panel-plugins/xfce4-alsa-plugin { }; + xfce4-battery-plugin = callPackage ./panel-plugins/xfce4-battery-plugin { }; xfce4-clipman-plugin = callPackage ./panel-plugins/xfce4-clipman-plugin { }; diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-alsa-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-alsa-plugin/default.nix new file mode 100644 index 000000000000..ab02e517467e --- /dev/null +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-alsa-plugin/default.nix @@ -0,0 +1,51 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + vala, + pkg-config, + gettext, + ninja, + alsa-lib, + xfce4-panel, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "xfce4-alsa-plugin"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "equeim"; + repo = "xfce4-alsa-plugin"; + tag = finalAttrs.version; + hash = "sha256-95uVHDyXji8dut7qfE5V/uBBt6DPYF/YfudHe7HJcE8="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + meson + vala + pkg-config + gettext + ninja + ]; + + buildInputs = [ + alsa-lib + xfce4-panel + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + homepage = "https://github.com/equeim/xfce4-alsa-plugin"; + description = "Simple ALSA volume control for xfce4-panel"; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ ProxyVT ]; + teams = [ lib.teams.xfce ]; + }; +})