2013-02-21 11:16:51 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, gstreamer, gst_plugins_base, gtk
|
|
|
|
, libxfce4util, libxfce4ui, xfce4panel, xfconf, libunique?null }:
|
2011-08-22 23:51:23 +01: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.
|
2012-03-14 22:44:52 +00:00
|
|
|
gst_plugins_minimal = gst_plugins_base.override {
|
2011-08-22 23:51:23 +01:00
|
|
|
minimalDeps = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-21 11:16:51 +00:00
|
|
|
p_name = "xfce4-mixer";
|
|
|
|
ver_maj = "4.10";
|
|
|
|
ver_min = "0";
|
|
|
|
|
2011-08-22 23:51:23 +01:00
|
|
|
src = fetchurl {
|
2013-02-21 11:16:51 +00:00
|
|
|
url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2";
|
|
|
|
sha256 = "1pnsd00583l7p5d80rxbh58brzy3jnccwikbbbm730a33c08kid8";
|
2011-08-22 23:51:23 +01:00
|
|
|
};
|
2013-02-21 11:16:51 +00:00
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
2011-08-22 23:51:23 +01:00
|
|
|
|
|
|
|
buildInputs =
|
2012-03-14 22:44:52 +00:00
|
|
|
[ pkgconfig intltool glib gstreamer gst_plugins_minimal gtk
|
2013-02-21 11:16:51 +00:00
|
|
|
libxfce4util libxfce4ui xfce4panel xfconf libunique
|
2011-08-22 23:51:23 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p $out/nix-support
|
2012-03-14 22:44:52 +00:00
|
|
|
echo ${gst_plugins_minimal} > $out/nix-support/propagated-user-env-packages
|
2011-08-22 23:51:23 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-02-21 11:16:51 +00:00
|
|
|
homepage = http://www.xfce.org/projects/xfce4-mixer; # referenced but inactive
|
2011-08-22 23:51:23 +01:00
|
|
|
description = "A volume control application for the Xfce desktop environment";
|
|
|
|
license = "GPLv2+";
|
2011-09-06 00:30:26 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2011-08-22 23:51:23 +01:00
|
|
|
};
|
|
|
|
}
|