Skip to content

Commit 98e0716

Browse files
euankJon
authored andcommitted
libappindicator: 12.10.0 -> 12.10.1+20.10.20200706.1
This moves libappindicator to use a different upstream source. Rather than use the 8 year old (!) version displayed on its homepage (https://launchpad.net/libappindicator), this switches us to the maintained lp:libappindicator branch, browseable over here: https://code.launchpad.net/~indicator-applet-developers/libappindicator/trunk. This includes numerous fixes, remains updated, and matches what ubuntu uses. Due to a personal preference for git over bzr, I have the package using ubuntu's git mirror of the package for the source rather than the bzr repo where I _think_ development actually takes place. This also removes the no-python patch, because per revision 292 (https://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk/revision/292), that has been dropped from upstream already, so the patch is no longer needed. The primary motivation behind this change is to fix a crash with libappindicator (reported https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/1867996 and in various other places). The relevant patch for that should be included in this version.
1 parent 49dba2c commit 98e0716

1 file changed

Lines changed: 11 additions & 17 deletions

File tree

pkgs/development/libraries/libappindicator/default.nix

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# TODO: Resolve the issues with the Mono bindings.
22

3-
{ stdenv, fetchurl, fetchpatch, lib
3+
{ stdenv, fetchgit, lib
44
, pkgconfig, autoreconfHook
55
, glib, dbus-glib, gtkVersion ? "3"
66
, gtk2 ? null, libindicator-gtk2 ? null, libdbusmenu-gtk2 ? null
77
, gtk3 ? null, libindicator-gtk3 ? null, libdbusmenu-gtk3 ? null
8-
, vala, gobject-introspection
8+
, gtk-doc, vala, gobject-introspection
99
, monoSupport ? false, mono ? null, gtk-sharp-2_0 ? null
1010
}:
1111

@@ -15,18 +15,17 @@ with lib;
1515
stdenv.mkDerivation rec {
1616
name = let postfix = if gtkVersion == "2" && monoSupport then "sharp" else "gtk${gtkVersion}";
1717
in "libappindicator-${postfix}-${version}";
18-
version = "${versionMajor}.${versionMinor}";
19-
versionMajor = "12.10";
20-
versionMinor = "0";
18+
version = "12.10.1+20.10.20200706.1";
2119

2220
outputs = [ "out" "dev" ];
2321

24-
src = fetchurl {
25-
url = "${meta.homepage}/${versionMajor}/${version}/+download/libappindicator-${version}.tar.gz";
26-
sha256 = "17xlqd60v0zllrxp8bgq3k5a1jkj0svkqn8rzllcyjh8k0gpr46m";
22+
src = fetchgit {
23+
url = "https://git.launchpad.net/ubuntu/+source/libappindicator";
24+
rev = "fe25e53bc7e39cd59ad6b3270cd7a6a9c78c4f44";
25+
sha256 = "0xjvbl4gn7ra2fs6gn2g9s787kzb5cg9hv79iqsz949rxh4iw32d";
2726
};
2827

29-
nativeBuildInputs = [ pkgconfig autoreconfHook vala gobject-introspection ];
28+
nativeBuildInputs = [ pkgconfig autoreconfHook vala gobject-introspection gtk-doc ];
3029

3130
propagatedBuildInputs =
3231
if gtkVersion == "2"
@@ -39,14 +38,9 @@ stdenv.mkDerivation rec {
3938
then [ libindicator-gtk2 ] ++ optionals monoSupport [ mono gtk-sharp-2_0 ]
4039
else [ libindicator-gtk3 ]);
4140

42-
patches = [
43-
# Remove python2 from libappindicator.
44-
(fetchpatch {
45-
name = "no-python.patch";
46-
url = "https://src.fedoraproject.org/rpms/libappindicator/raw/8508f7a52437679fd95a79b4630373f08315f189/f/nopython.patch";
47-
sha256 = "18b1xzvwsbhhfpbzf5zragij4g79pa04y1dk6v5ci1wsjvii725s";
48-
})
49-
];
41+
preAutoreconf = ''
42+
gtkdocize
43+
'';
5044

5145
configureFlags = [
5246
"CFLAGS=-Wno-error"

0 commit comments

Comments
 (0)