linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libayatana-appindicator / default.nix
blob53b0dca0912710317ecd21b63dec12f931210f91
1 { stdenv, fetchFromGitHub, lib
2 , pkg-config, autoreconfHook , gtk-doc
3 , gobject-introspection
4 , gtkVersion ? "3"
5 , gtk2, libayatana-indicator-gtk2, libdbusmenu-gtk2
6 , gtk3, libayatana-indicator-gtk3, libdbusmenu-gtk3
7 , dbus-glib,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "libayatana-appindicator-gtk${gtkVersion}";
12   version = "0.5.5";
14   outputs = [ "out" "dev" ];
16   src = fetchFromGitHub {
17     owner = "AyatanaIndicators";
18     repo = "libayatana-appindicator";
19     rev = version;
20     sha256 = "1sba0w455rdkadkhxrx4fr63m0d9blsbb1q1hcshxw1k1z2nh1gk";
21   };
23   nativeBuildInputs = [ pkg-config autoreconfHook gtk-doc gobject-introspection dbus-glib ];
25   buildInputs =
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 ];
33   preAutoreconf = ''
34     gtkdocize
35   '';
37   configureFlags = [ "--with-gtk=${gtkVersion}" ];
39   meta = with lib; {
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;
46   };