nixpkgs/pkgs/applications/audio/pavucontrol/default.nix
adisbladis 9fa2e208f7
pavucontrol: Set GDK_PIXBUF_MODULE_FILE in wrapper
This fixes GTK pixbuf loader errors happening in certain environments
2018-09-16 10:18:11 +08:00

42 lines
1.2 KiB
Nix

{ fetchurl, stdenv, pkgconfig, intltool, libpulseaudio, gtkmm3
, libcanberra-gtk3, makeWrapper, gnome3 }:
stdenv.mkDerivation rec {
name = "pavucontrol-3.0";
src = fetchurl {
url = "https://freedesktop.org/software/pulseaudio/pavucontrol/${name}.tar.xz";
sha256 = "14486c6lmmirkhscbfygz114f6yzf97h35n3h3pdr27w4mdfmlmk";
};
preFixup = ''
wrapProgram "$out/bin/pavucontrol" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
'';
buildInputs = [ libpulseaudio gtkmm3 libcanberra-gtk3 makeWrapper
gnome3.defaultIconTheme ];
nativeBuildInputs = [ pkgconfig intltool ];
configureFlags = [ "--disable-lynx" ];
meta = with stdenv.lib; {
description = "PulseAudio Volume Control";
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.
'';
homepage = http://freedesktop.org/software/pulseaudio/pavucontrol/;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = with maintainers; [ abbradar jgeerds ];
platforms = platforms.linux;
};
}