@@ -1,4 +1,4 @@
1−{ fetchurl, fetchpatch, stdenv, lib, pkgconfig
1+{ fetchurl, fetchpatch, stdenv, lib, pkgconfig, autoreconfHook
22, libgpgerror, libassuan
33, libcap ? null, libsecret ? null, ncurses ? null, gtk2 ? null, gcr ? null
44, qt4 ? null, qt5 ? null
@@ -23,7 +23,7 @@ mkDerivation rec {
2323 sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8";
2424 };
2525
26− nativeBuildInputs = [ pkgconfig ];
26+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
2727 buildInputs =
2828 [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt4 ]
2929 ++ stdenv.lib.optional (qt5 != null) qt5.qtbase;
@@ -32,7 +32,9 @@ mkDerivation rec {
3232 substituteInPlace pinentry/pinentry-curses.c --replace ncursesw ncurses
3333 '';
3434
35− patches = lib.optionals (gtk2 != null) [
35+ patches = [
36+ ./autoconf-ar.patch
37+ ] ++ lib.optionals (gtk2 != null) [
3638 (fetchpatch {
3739 url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/"
3840 + "0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch";