pinentry: find moc when qt4 enabled

+9 -2
+9 -2
pkgs/tools/security/pinentry/default.nix
··· 19 19 20 20 buildInputs = [ libcap gtk2 ncurses qt4 ]; 21 21 22 + # configure cannot find moc on its own 23 + preConfigure = stdenv.lib.optionalString (qt4 != null) '' 24 + export QTDIR="${qt4}" 25 + export MOC="${qt4}/bin/moc" 26 + ''; 27 + 22 28 configureFlags = [ 23 29 (mkWith (libcap != null) "libcap") 24 30 (mkWith (hasX) "x") ··· 36 42 license = stdenv.lib.licenses.gpl2Plus; 37 43 platforms = stdenv.lib.platforms.all; 38 44 longDescription = '' 39 - Pinentry provides a console and a GTK+ GUI that allows users to 40 - enter a passphrase when `gpg' or `gpg2' is run and needs it. 45 + Pinentry provides a console and (optional) GTK+ and Qt GUIs allowing users 46 + to enter a passphrase when `gpg' or `gpg2' is run and needs it. 41 47 ''; 48 + maintainers = [ stdenv.lib.maintainers.ttuegel ]; 42 49 }; 43 50 }