2014-08-19 03:57:30 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, makeWrapper
|
2017-02-26 21:25:29 +01:00
|
|
|
, glib, gstreamer, gst-plugins-base, gtk
|
2014-08-19 03:57:30 +02:00
|
|
|
, libxfce4util, libxfce4ui, xfce4panel, xfconf, libunique ? null
|
2017-02-26 20:36:20 +01:00
|
|
|
, pulseaudioSupport ? false, gst-plugins-good
|
2014-08-19 03:57:30 +02:00
|
|
|
}:
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
# The usual Gstreamer plugins package has a zillion dependencies
|
|
|
|
# that we don't need for a simple mixer, so build a minimal package.
|
2017-02-26 21:25:29 +01:00
|
|
|
gst_plugins_minimal = gst-plugins-base.override {
|
2011-08-23 00:51:23 +02:00
|
|
|
minimalDeps = true;
|
|
|
|
};
|
2017-02-26 20:36:20 +01:00
|
|
|
gst_plugins_pulse = gst-plugins-good.override {
|
2014-10-23 01:12:45 +02:00
|
|
|
minimalDeps = true;
|
|
|
|
};
|
|
|
|
gst_plugins = [ gst_plugins_minimal ] ++ stdenv.lib.optional pulseaudioSupport gst_plugins_pulse;
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-21 12:16:51 +01:00
|
|
|
p_name = "xfce4-mixer";
|
|
|
|
ver_maj = "4.10";
|
|
|
|
ver_min = "0";
|
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
src = fetchurl {
|
2013-02-21 12:16:51 +01:00
|
|
|
url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2";
|
|
|
|
sha256 = "1pnsd00583l7p5d80rxbh58brzy3jnccwikbbbm730a33c08kid8";
|
2011-08-23 00:51:23 +02:00
|
|
|
};
|
2013-02-21 12:16:51 +01:00
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
buildInputs =
|
2014-10-23 01:12:45 +02:00
|
|
|
[ pkgconfig intltool glib gstreamer gtk
|
2014-08-19 03:57:30 +02:00
|
|
|
libxfce4util libxfce4ui xfce4panel xfconf libunique makeWrapper
|
2014-10-23 01:12:45 +02:00
|
|
|
] ++ gst_plugins;
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
2014-08-19 03:57:30 +02:00
|
|
|
wrapProgram "$out/bin/xfce4-mixer" \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
2011-08-23 00:51:23 +02:00
|
|
|
'';
|
|
|
|
|
2014-10-23 14:08:33 +02:00
|
|
|
passthru = { inherit gst_plugins; };
|
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
meta = {
|
2013-02-21 12:16:51 +01:00
|
|
|
homepage = http://www.xfce.org/projects/xfce4-mixer; # referenced but inactive
|
2011-08-23 00:51:23 +02:00
|
|
|
description = "A volume control application for the Xfce desktop environment";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-09-06 01:30:26 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2011-08-23 00:51:23 +02:00
|
|
|
};
|
|
|
|
}
|