1 { stdenv, fetchurl, lib, file
3 , glib, dbus-glib, json-glib
4 , gtk2, libindicator-gtk2, libdbusmenu-gtk2, libappindicator-gtk2 }:
6 stdenv.mkDerivation rec {
7 pname = "indicator-application-gtk2";
11 url = "${meta.homepage}/indicator-application-gtk2/i-a-${version}/+download/indicator-application-${version}.tar.gz";
12 sha256 = "1xqsb6c1pwawabw854f7aybjrgyhc2r1316i9lyjspci51zk5m7v";
15 nativeBuildInputs = [ pkg-config autoconf ];
18 glib dbus-glib json-glib
19 gtk2 libindicator-gtk2 libdbusmenu-gtk2 libappindicator-gtk2
23 substituteInPlace configure.ac \
24 --replace 'DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`' \
25 "DBUSSERVICEDIR=$out/share/dbus-1/services"
27 for f in {configure,ltmain.sh,m4/libtool.m4}; do
28 substituteInPlace $f \
29 --replace /usr/bin/file ${file}/bin/file
31 substituteInPlace src/Makefile.in \
32 --replace 'applicationlibdir = $(INDICATORDIR)' "applicationlibdir = $out/lib"
38 "--localstatedir=/var"
42 "sysconfdir=\${out}/etc"
43 "localstatedir=\${TMPDIR}"
47 description = "Indicator to take menus from applications and place them in the panel (GTK 2 library for Xfce/LXDE)";
48 homepage = "https://launchpad.net/indicators-gtk2";
49 license = licenses.gpl3;
50 platforms = platforms.linux;
51 maintainers = [ maintainers.msteen ];