2015-05-19 14:44:27 +02:00
|
|
|
{ stdenv, makeWrapper, alsaLib, pkgconfig, fetchgit, gnome3, gdk_pixbuf, librsvg }:
|
2014-03-13 16:24:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "gvolicon";
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Unia/gvolicon";
|
2014-10-18 19:18:00 +02:00
|
|
|
rev = "c04cafb88124e1e5edc61dd52f76bf13381d5167";
|
|
|
|
sha256 = "31cf770dca0d216e3108b258b4c150cbeb3b127002d53fd6ddddfcf9e3e293aa";
|
2014-03-13 16:24:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig makeWrapper alsaLib gnome3.gtk ];
|
2015-05-19 14:44:27 +02:00
|
|
|
propagatedBuildInputs = [ gnome3.defaultIconTheme gdk_pixbuf librsvg ];
|
2014-03-13 16:24:15 +01:00
|
|
|
installPhase = ''
|
|
|
|
make install PREFIX=$out
|
|
|
|
wrapProgram "$out/bin/gvolicon" \
|
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gnome3.gtk}/share:${gnome3.gnome_themes_standard}/share:${gnome3.gsettings_desktop_schemas}/share:$out/share:$out/share/gvolicon:$XDG_ICON_DIRS"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A simple and lightweight volume icon that sits in your system tray";
|
2014-09-13 13:51:39 +02:00
|
|
|
homepage = https://github.com/Unia/gvolicon;
|
2014-03-13 16:24:15 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2014-09-13 13:51:39 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.bennofs ];
|
2014-03-13 16:24:15 +01:00
|
|
|
};
|
2014-10-18 19:18:00 +02:00
|
|
|
}
|