diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2017-07-18 06:06:57 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2017-10-01 01:38:15 +0200 |
commit | feddf1b2780cb97e120d3102259084c15dbd975f (patch) | |
tree | 66dc2daf164bcbc8dc4348d37f66dbd8dce99837 /pkgs | |
parent | 75bf151d251e3dc03e3188991f36c482f6eeed7d (diff) | |
download | nixlib-feddf1b2780cb97e120d3102259084c15dbd975f.tar nixlib-feddf1b2780cb97e120d3102259084c15dbd975f.tar.gz nixlib-feddf1b2780cb97e120d3102259084c15dbd975f.tar.bz2 nixlib-feddf1b2780cb97e120d3102259084c15dbd975f.tar.lz nixlib-feddf1b2780cb97e120d3102259084c15dbd975f.tar.xz nixlib-feddf1b2780cb97e120d3102259084c15dbd975f.tar.zst nixlib-feddf1b2780cb97e120d3102259084c15dbd975f.zip |
pinentry: add optional libsecret dependency
libsecret is used for cacheing passwords.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/security/pinentry/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/tools/security/pinentry/default.nix b/pkgs/tools/security/pinentry/default.nix index 10a9d3504acc..0d957fc97e08 100644 --- a/pkgs/tools/security/pinentry/default.nix +++ b/pkgs/tools/security/pinentry/default.nix @@ -1,5 +1,5 @@ { fetchurl, fetchpatch, stdenv, lib, pkgconfig -, libgpgerror, libassuan, libcap ? null, ncurses ? null, gtk2 ? null, gcr ? null, qt4 ? null +, libgpgerror, libassuan, libcap ? null, libsecret ? null, ncurses ? null, gtk2 ? null, gcr ? null, qt4 ? null }: let @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { sha256 = "0ni7g4plq6x78p32al7m8h2zsakvg1rhfz0qbc3kdc7yq7nw4whn"; }; - buildInputs = [ libgpgerror libassuan libcap gtk2 gcr ncurses qt4 ]; + buildInputs = [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt4 ]; prePatch = '' substituteInPlace pinentry/pinentry-curses.c --replace ncursesw ncurses @@ -38,12 +38,13 @@ stdenv.mkDerivation rec { ''; configureFlags = [ - (mkWith (libcap != null) "libcap") - (mkEnable (ncurses != null) "pinentry-curses") - (mkEnable true "pinentry-tty") - (mkEnable (gtk2 != null) "pinentry-gtk2") - (mkEnable (gcr != null) "pinentry-gnome3") - (mkEnable (qt4 != null) "pinentry-qt") + (mkWith (libcap != null) "libcap") + (mkEnable (libsecret != null) "libsecret") + (mkEnable (ncurses != null) "pinentry-curses") + (mkEnable true "pinentry-tty") + (mkEnable (gtk2 != null) "pinentry-gtk2") + (mkEnable (gcr != null) "pinentry-gnome3") + (mkEnable (qt4 != null) "pinentry-qt") ]; nativeBuildInputs = [ pkgconfig ]; |