Skip to content

Commit

Permalink
libappindicator-gtk2: add missing automake step (#74733)
Browse files Browse the repository at this point in the history
libappindicator-gtk2: add missing automake step
  • Loading branch information
jtojnar authored Nov 30, 2019
2 parents ee355d5 + 573ab43 commit eabb843
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions pkgs/development/libraries/libappindicator/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TODO: Resolve the issues with the Mono bindings.

{ stdenv, fetchurl, fetchpatch, lib, file
, pkgconfig, autoconf
{ stdenv, fetchurl, fetchpatch, lib
, pkgconfig, autoreconfHook
, glib, dbus-glib, gtkVersion ? "3"
, gtk2 ? null, libindicator-gtk2 ? null, libdbusmenu-gtk2 ? null
, gtk3 ? null, libindicator-gtk3 ? null, libdbusmenu-gtk3 ? null
Expand All @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
sha256 = "17xlqd60v0zllrxp8bgq3k5a1jkj0svkqn8rzllcyjh8k0gpr46m";
};

nativeBuildInputs = [ pkgconfig autoconf vala gobject-introspection ];
nativeBuildInputs = [ pkgconfig autoreconfHook vala gobject-introspection ];

propagatedBuildInputs =
if gtkVersion == "2"
Expand All @@ -46,26 +46,13 @@ stdenv.mkDerivation rec {
})
];

postPatch = ''
autoconf
for f in {configure,ltmain.sh,m4/libtool.m4}; do
substituteInPlace $f \
--replace /usr/bin/file ${file}/bin/file
done
'';

configureFlags = [
"CFLAGS=-Wno-error"
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-gtk=${gtkVersion}"
];

postConfigure = ''
substituteInPlace configure \
--replace /usr/bin/file ${file}/bin/file
'';

doCheck = false; # generates shebangs in check phase, too lazy to fix

installFlags = [
Expand Down

0 comments on commit eabb843

Please sign in to comment.