mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
73 lines
1.6 KiB
Nix
73 lines
1.6 KiB
Nix
{
|
|
fetchFromGitLab,
|
|
lib,
|
|
stdenv,
|
|
pkg-config,
|
|
intltool,
|
|
libpulseaudio,
|
|
gtkmm4,
|
|
libsigcxx,
|
|
# Since version 6.1, libcanberra is optional
|
|
withLibcanberra ? true,
|
|
libcanberra-gtk3,
|
|
json-glib,
|
|
adwaita-icon-theme,
|
|
wrapGAppsHook4,
|
|
meson,
|
|
ninja,
|
|
libpressureaudio,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pavucontrol";
|
|
version = "6.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "pulseaudio";
|
|
repo = "pavucontrol";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-cru4I+LljYKIpIr7gSolnuLuUIXgc8l+JUmPrme4+YA=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libpulseaudio
|
|
gtkmm4
|
|
libsigcxx
|
|
(lib.optionals withLibcanberra libcanberra-gtk3)
|
|
json-glib
|
|
adwaita-icon-theme
|
|
libpressureaudio
|
|
];
|
|
|
|
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;
|
|
};
|
|
})
|