pinentry: find moc when qt4 enabled

This commit is contained in:
Thomas Tuegel 2015-06-08 09:25:58 -05:00
parent 64a507bd9b
commit af6c270b6d

View File

@ -19,6 +19,12 @@ stdenv.mkDerivation rec {
buildInputs = [ libcap gtk2 ncurses qt4 ]; buildInputs = [ libcap gtk2 ncurses qt4 ];
# configure cannot find moc on its own
preConfigure = stdenv.lib.optionalString (qt4 != null) ''
export QTDIR="${qt4}"
export MOC="${qt4}/bin/moc"
'';
configureFlags = [ configureFlags = [
(mkWith (libcap != null) "libcap") (mkWith (libcap != null) "libcap")
(mkWith (hasX) "x") (mkWith (hasX) "x")
@ -36,8 +42,9 @@ stdenv.mkDerivation rec {
license = stdenv.lib.licenses.gpl2Plus; license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.all; platforms = stdenv.lib.platforms.all;
longDescription = '' longDescription = ''
Pinentry provides a console and a GTK+ GUI that allows users to Pinentry provides a console and (optional) GTK+ and Qt GUIs allowing users
enter a passphrase when `gpg' or `gpg2' is run and needs it. to enter a passphrase when `gpg' or `gpg2' is run and needs it.
''; '';
maintainers = [ stdenv.lib.maintainers.ttuegel ];
}; };
} }