lol

pinentry_qt5: init at 0.9.6

+51
+47
pkgs/tools/security/pinentry/qt5.nix
··· 1 + { fetchurl, stdenv, pkgconfig 2 + , libgpgerror, libassuan 3 + , qtbase 4 + , libcap ? null 5 + }: 6 + 7 + let 8 + mkFlag = pfxTrue: pfxFalse: cond: name: "--${if cond then pfxTrue else pfxFalse}-${name}"; 9 + mkEnable = mkFlag "enable" "disable"; 10 + mkWith = mkFlag "with" "without"; 11 + in 12 + with stdenv.lib; 13 + stdenv.mkDerivation rec { 14 + name = "pinentry-0.9.6"; 15 + 16 + src = fetchurl { 17 + url = "mirror://gnupg/pinentry/${name}.tar.bz2"; 18 + sha256 = "0rhyw1vk28kgasjp22myf7m2q8kycw82d65pr9kgh93z17lj849a"; 19 + }; 20 + 21 + buildInputs = [ libgpgerror libassuan libcap qtbase ]; 22 + 23 + # configure cannot find moc on its own 24 + preConfigure = '' 25 + export QTDIR="${qtbase}" 26 + export MOC="${qtbase}/bin/moc" 27 + ''; 28 + 29 + configureFlags = [ 30 + (mkWith (libcap != null) "libcap") 31 + (mkEnable true "pinentry-qt") 32 + ]; 33 + 34 + nativeBuildInputs = [ pkgconfig ]; 35 + 36 + meta = { 37 + homepage = "http://gnupg.org/aegypten2/"; 38 + description = "GnuPG's interface to passphrase input"; 39 + license = stdenv.lib.licenses.gpl2Plus; 40 + platforms = stdenv.lib.platforms.all; 41 + longDescription = '' 42 + Pinentry provides a console and (optional) GTK+ and Qt GUIs allowing users 43 + to enter a passphrase when `gpg' or `gpg2' is run and needs it. 44 + ''; 45 + maintainers = [ stdenv.lib.maintainers.ttuegel ]; 46 + }; 47 + }
+4
pkgs/top-level/all-packages.nix
··· 2711 2711 qt4 = null; 2712 2712 }; 2713 2713 2714 + pinentry_qt5 = qt55Libs.callPackage ../tools/security/pinentry/qt5.nix { 2715 + libcap = if stdenv.isDarwin then null else libcap; 2716 + }; 2717 + 2714 2718 pius = callPackage ../tools/security/pius { }; 2715 2719 2716 2720 pk2cmd = callPackage ../tools/misc/pk2cmd { };