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