1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 02:46:38 +00:00
nixpkgs/pkgs/tools/audio/gvolicon/default.nix
2015-06-04 23:34:14 +03:00

28 lines
1.1 KiB
Nix

{ stdenv, makeWrapper, alsaLib, pkgconfig, fetchgit, gnome3, gdk_pixbuf, librsvg }:
stdenv.mkDerivation {
name = "gvolicon-2014-04-28";
src = fetchgit {
url = "https://github.com/Unia/gvolicon";
rev = "c04cafb88124e1e5edc61dd52f76bf13381d5167";
sha256 = "31cf770dca0d216e3108b258b4c150cbeb3b127002d53fd6ddddfcf9e3e293aa";
};
buildInputs = [ pkgconfig makeWrapper alsaLib gnome3.gtk ];
propagatedBuildInputs = [ gnome3.defaultIconTheme gdk_pixbuf librsvg ];
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 = {
description = "A simple and lightweight volume icon that sits in your system tray";
homepage = https://github.com/Unia/gvolicon;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.bennofs ];
};
}