2015-11-02 14:23:35 +00:00
|
|
|
# TODO: Resolve the issues with the Mono bindings.
|
|
|
|
|
2020-07-19 01:11:24 +01:00
|
|
|
{ stdenv, fetchgit, lib
|
2019-11-30 12:20:38 +00:00
|
|
|
, pkgconfig, autoreconfHook
|
2018-05-01 19:51:03 +01:00
|
|
|
, glib, dbus-glib, gtkVersion ? "3"
|
2015-11-02 14:23:35 +00:00
|
|
|
, gtk2 ? null, libindicator-gtk2 ? null, libdbusmenu-gtk2 ? null
|
|
|
|
, gtk3 ? null, libindicator-gtk3 ? null, libdbusmenu-gtk3 ? null
|
2020-07-19 01:11:24 +01:00
|
|
|
, gtk-doc, vala, gobject-introspection
|
2016-09-13 18:42:55 +01:00
|
|
|
, monoSupport ? false, mono ? null, gtk-sharp-2_0 ? null
|
2015-11-02 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2019-11-27 19:29:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-11-02 14:23:35 +00:00
|
|
|
name = let postfix = if gtkVersion == "2" && monoSupport then "sharp" else "gtk${gtkVersion}";
|
|
|
|
in "libappindicator-${postfix}-${version}";
|
2020-07-19 01:11:24 +01:00
|
|
|
version = "12.10.1+20.10.20200706.1";
|
2015-11-02 14:23:35 +00:00
|
|
|
|
2019-10-23 23:36:47 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-07-19 01:11:24 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.launchpad.net/ubuntu/+source/libappindicator";
|
|
|
|
rev = "fe25e53bc7e39cd59ad6b3270cd7a6a9c78c4f44";
|
|
|
|
sha256 = "0xjvbl4gn7ra2fs6gn2g9s787kzb5cg9hv79iqsz949rxh4iw32d";
|
2015-11-02 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2020-07-19 01:11:24 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook vala gobject-introspection gtk-doc ];
|
2015-11-02 14:23:35 +00:00
|
|
|
|
2017-04-03 15:25:12 +01:00
|
|
|
propagatedBuildInputs =
|
|
|
|
if gtkVersion == "2"
|
|
|
|
then [ gtk2 libdbusmenu-gtk2 ]
|
|
|
|
else [ gtk3 libdbusmenu-gtk3 ];
|
|
|
|
|
2015-11-02 14:23:35 +00:00
|
|
|
buildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
glib dbus-glib
|
2015-11-02 14:23:35 +00:00
|
|
|
] ++ (if gtkVersion == "2"
|
2017-04-03 15:25:12 +01:00
|
|
|
then [ libindicator-gtk2 ] ++ optionals monoSupport [ mono gtk-sharp-2_0 ]
|
|
|
|
else [ libindicator-gtk3 ]);
|
2015-11-02 14:23:35 +00:00
|
|
|
|
2020-07-19 01:11:24 +01:00
|
|
|
preAutoreconf = ''
|
|
|
|
gtkdocize
|
|
|
|
'';
|
2019-11-27 19:29:17 +00:00
|
|
|
|
2015-11-02 14:23:35 +00:00
|
|
|
configureFlags = [
|
|
|
|
"CFLAGS=-Wno-error"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-gtk=${gtkVersion}"
|
|
|
|
];
|
|
|
|
|
2018-08-08 19:37:30 +01:00
|
|
|
doCheck = false; # generates shebangs in check phase, too lazy to fix
|
|
|
|
|
2015-11-02 14:23:35 +00:00
|
|
|
installFlags = [
|
2019-11-27 19:29:17 +00:00
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
2015-11-02 14:23:35 +00:00
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library to allow applications to export a menu into the Unity Menu bar";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://launchpad.net/libappindicator";
|
2015-11-02 14:23:35 +00:00
|
|
|
license = with licenses; [ lgpl21 lgpl3 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|