1 { lib, stdenv, fetchbzr
2 , pkg-config, systemd, autoreconfHook
3 , glib, dbus-glib, json-glib
4 , gtk3, libindicator-gtk3, libdbusmenu-gtk3, libappindicator-gtk3 }:
6 stdenv.mkDerivation rec {
7 pname = "indicator-application";
10 name = "${pname}-gtk3-${version}";
13 url = "https://code.launchpad.net/~indicator-applet-developers/${pname}/trunk.17.04";
15 sha256 = "1f0jdyqqb5g86zdpbcyn16x94yjigsfiv2kf73dvni5rp1vafbq1";
18 nativeBuildInputs = [ pkg-config autoreconfHook ];
21 glib dbus-glib json-glib systemd
22 gtk3 libindicator-gtk3 libdbusmenu-gtk3 libappindicator-gtk3
26 substituteInPlace data/Makefile.am \
27 --replace "/etc/xdg/autostart" "$out/etc/xdg/autostart"
33 "--localstatedir=/var"
37 "sysconfdir=\${out}/etc"
38 "localstatedir=\${TMPDIR}"
41 PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "$(out)/lib/systemd/user";
42 PKG_CONFIG_INDICATOR3_0_4_INDICATORDIR = "$(out)/lib/indicators3/7/";
44 # Upstart is not used in NixOS
46 rm -rf $out/share/indicator-application/upstart
47 rm -rf $out/share/upstart
51 description = "Indicator to take menus from applications and place them in the panel";
52 homepage = "https://launchpad.net/indicator-application";
53 license = licenses.gpl3;
54 platforms = platforms.linux;
55 maintainers = [ maintainers.msteen ];