@@ -1,7 +1,7 @@
11# TODO: Resolve the issues with the Mono bindings.
22
3−{ stdenv, fetchurl, fetchpatch, lib, file
4−, pkgconfig, autoconf
3+{ stdenv, fetchurl, fetchpatch, lib
4+, 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
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
2424 sha256 = "17xlqd60v0zllrxp8bgq3k5a1jkj0svkqn8rzllcyjh8k0gpr46m";
2525 };
2626
27− nativeBuildInputs = [ pkgconfig autoconf vala gobject-introspection ];
27+ nativeBuildInputs = [ pkgconfig autoreconfHook vala gobject-introspection ];
2828
2929 propagatedBuildInputs =
3030 if gtkVersion == "2"
@@ -46,14 +46,6 @@ stdenv.mkDerivation rec {
4646 })
4747 ];
4848
49− postPatch = ''
50− autoconf
51− for f in {configure,ltmain.sh,m4/libtool.m4}; do
52− substituteInPlace $f \
53− --replace /usr/bin/file ${file}/bin/file
54− done
55− '';
56−
5749 configureFlags = [
5850 "CFLAGS=-Wno-error"
5951 "--sysconfdir=/etc"
@@ -61,11 +53,6 @@ stdenv.mkDerivation rec {
6153 "--with-gtk=${gtkVersion}"
6254 ];
6355
64− postConfigure = ''
65− substituteInPlace configure \
66− --replace /usr/bin/file ${file}/bin/file
67− '';
68−
6956 doCheck = false; # generates shebangs in check phase, too lazy to fix
7057
7158 installFlags = [