@@ -1,4 +1,4 @@
1−{ fetchurl, fetchpatch, stdenv, lib, pkgconfig
1+{ fetchurl, fetchpatch, stdenv, lib, pkgconfig, autoreconfHook
2, libgpgerror, libassuan
2, libgpgerror, libassuan
3, libcap ? null, libsecret ? null, ncurses ? null, gtk2 ? null, gcr ? null
3, libcap ? null, libsecret ? null, ncurses ? null, gtk2 ? null, gcr ? null
4, qt4 ? null, qt5 ? null
4, qt4 ? null, qt5 ? null
@@ -23,7 +23,7 @@ mkDerivation rec {
23 sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8";
23 sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8";
26− nativeBuildInputs = [ pkgconfig ];
26+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
27 buildInputs =
27 buildInputs =
28 [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt4 ]
28 [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt4 ]
29 ++ stdenv.lib.optional (qt5 != null) qt5.qtbase;
29 ++ stdenv.lib.optional (qt5 != null) qt5.qtbase;
@@ -32,7 +32,9 @@ mkDerivation rec {
32 substituteInPlace pinentry/pinentry-curses.c --replace ncursesw ncurses
32 substituteInPlace pinentry/pinentry-curses.c --replace ncursesw ncurses
35− patches = lib.optionals (gtk2 != null) [
37+ ] ++ lib.optionals (gtk2 != null) [
36 (fetchpatch {
38 (fetchpatch {
37 url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/"
39 url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/"
38 + "0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch";
40 + "0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch";