git.iko.soy/typeable/nixpkgs
on master help sign in
pinentry_qt5: init at 0.9.6
commit2b318da6191edf54ef85b27fa7795cf1d560cc96 authorThomas Tuegel <ttuegel@gmail.com> dateThu 10 Dec 2015, 11:06 (11 years ago) parent80681dd
2 files changed+51
pkgs/tools/security/pinentry/qt5.nix+47 pkgs/top-level/all-packages.nix+4
pkgs/tools/security/pinentry/qt5.nixnew file+47
@@ -0,0 +1,47 @@
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+}
pkgs/top-level/all-packages.nix+4
@@ -2711,6 +2711,10 @@ let
27112711 qt4 = null;
27122712 };
27132713
2714+ pinentry_qt5 = qt55Libs.callPackage ../tools/security/pinentry/qt5.nix {
2715+ libcap = if stdenv.isDarwin then null else libcap;
2716+ };
2717+
27142718 pius = callPackage ../tools/security/pius { };
27152719
27162720 pk2cmd = callPackage ../tools/misc/pk2cmd { };