2014-10-23 00:14:21 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, makeWrapper
|
2017-02-26 20:25:29 +00:00
|
|
|
, gstreamer, gtk2, gst-plugins-base, libnotify
|
2020-04-13 22:12:16 +01:00
|
|
|
, keybinder, xfconf, xfce
|
2014-10-23 00:14:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2020-04-13 22:12:16 +01:00
|
|
|
category = "apps";
|
|
|
|
|
2014-10-23 00:14:21 +01:00
|
|
|
# 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 20:25:29 +00:00
|
|
|
gst_plugins_minimal = gst-plugins-base.override {
|
2014-10-23 00:14:21 +01:00
|
|
|
minimalDeps = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-13 22:12:16 +01:00
|
|
|
pname = "xfce4-volumed";
|
|
|
|
version = "0.1.13";
|
2014-10-23 00:14:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-13 22:12:16 +01:00
|
|
|
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
|
2014-10-23 00:14:21 +01:00
|
|
|
sha256 = "1aa0a1sbf9yzi7bc78kw044m0xzg1li3y4w9kf20wqv5kfjs7v2c";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ gstreamer gst_plugins_minimal gtk2
|
|
|
|
keybinder xfconf libnotify
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
wrapProgram "$out/bin/xfce4-volumed" \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
|
|
|
'';
|
|
|
|
|
2020-04-13 22:12:16 +01:00
|
|
|
passthru.updateScript = xfce.updateScript {
|
|
|
|
inherit pname version;
|
|
|
|
attrPath = "xfce.${pname}";
|
|
|
|
versionLister = xfce.archiveLister category pname;
|
|
|
|
};
|
|
|
|
|
2014-10-23 00:14:21 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.xfce.org/projects/xfce4-volumed"; # referenced but inactive
|
2014-10-23 00:14:21 +01:00
|
|
|
description = "A volume keys control daemon for the Xfce desktop environment";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.abbradar ];
|
|
|
|
};
|
|
|
|
}
|