nixpkgs/pkgs/applications/audio/pavucontrol/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.6 KiB
Nix
Raw Normal View History

{
fetchFromGitLab,
lib,
stdenv,
pkg-config,
intltool,
libpulseaudio,
gtkmm4,
libsigcxx,
# Since version 6.0, libcanberra is optional
withLibcanberra ? true,
libcanberra-gtk3,
json-glib,
adwaita-icon-theme,
wrapGAppsHook4,
meson,
ninja,
libpressureaudio,
2021-10-19 14:42:00 +00:00
}:
2024-07-29 13:02:11 +00:00
stdenv.mkDerivation (finalAttrs: {
2019-03-09 07:21:06 +00:00
pname = "pavucontrol";
version = "6.0";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "pulseaudio";
repo = "pavucontrol";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-nxzFvD/KUevIJOw9jgcr0Hfvg7KiSOmTBfKN3jLu3Cg=";
};
2021-10-19 14:42:00 +00:00
buildInputs = [
libpulseaudio
gtkmm4
2021-10-19 14:42:00 +00:00
libsigcxx
(lib.optionals withLibcanberra libcanberra-gtk3)
2021-10-19 14:42:00 +00:00
json-glib
adwaita-icon-theme
libpressureaudio
2021-10-19 14:42:00 +00:00
];
nativeBuildInputs = [
pkg-config
intltool
wrapGAppsHook4
meson
ninja
];
mesonFlags = [
"--prefix=${placeholder "out"}"
(lib.mesonBool "lynx" false)
];
enableParallelBuilding = true;
meta = {
changelog = "https://freedesktop.org/software/pulseaudio/pavucontrol/#news";
description = "PulseAudio Volume Control";
homepage = "http://freedesktop.org/software/pulseaudio/pavucontrol/";
license = lib.licenses.gpl2Plus;
longDescription = ''
PulseAudio Volume Control (pavucontrol) provides a GTK
graphical user interface to connect to a PulseAudio server and
easily control the volume of all clients, sinks, etc.
'';
mainProgram = "pavucontrol";
maintainers = with lib.maintainers; [ abbradar ];
platforms = lib.platforms.linux;
};
2024-07-29 13:02:11 +00:00
})