1 { stdenv, fetchFromGitHub, lib
2 , pkg-config, autoreconfHook , gtk-doc
3 , gobject-introspection
5 , gtk2, libayatana-indicator-gtk2, libdbusmenu-gtk2
6 , gtk3, libayatana-indicator-gtk3, libdbusmenu-gtk3
10 stdenv.mkDerivation rec {
11 pname = "libayatana-appindicator-gtk${gtkVersion}";
14 outputs = [ "out" "dev" ];
16 src = fetchFromGitHub {
17 owner = "AyatanaIndicators";
18 repo = "libayatana-appindicator";
20 sha256 = "1sba0w455rdkadkhxrx4fr63m0d9blsbb1q1hcshxw1k1z2nh1gk";
23 nativeBuildInputs = [ pkg-config autoreconfHook gtk-doc gobject-introspection dbus-glib ];
26 lib.lists.optional (gtkVersion == "2") libayatana-indicator-gtk2
27 ++ lib.lists.optional (gtkVersion == "3") libayatana-indicator-gtk3;
29 propagatedBuildInputs =
30 lib.lists.optionals (gtkVersion == "2") [ gtk2 libdbusmenu-gtk2 ]
31 ++ lib.lists.optionals (gtkVersion == "3") [ gtk3 libdbusmenu-gtk3 ];
37 configureFlags = [ "--with-gtk=${gtkVersion}" ];
40 description = "Ayatana Application Indicators Shared Library";
41 homepage = "https://github.com/AyatanaIndicators/libayatana-appindicator";
42 changelog = "https://github.com/AyatanaIndicators/libayatana-appindicator/blob/${version}/ChangeLog";
43 license = [ licenses.lgpl3Plus licenses.lgpl21Plus ];
44 maintainers = [ maintainers.nickhu ];
45 platforms = platforms.linux;