about summary refs log tree commit diff
path: root/pkgs/applications/networking/msmtp
diff options
context:
space:
mode:
authorMatthieu Coudron <coudron@iij.ad.jp>2017-10-24 16:56:06 +0900
committerPeter Hoeg <peter@hoeg.com>2017-10-24 15:56:06 +0800
commitcd4df565ef77e40eddc98e2d6343ca83b109b358 (patch)
tree9948ae3f2700b4f955d10305c7a13762569faef6 /pkgs/applications/networking/msmtp
parent53e96d575faa06aea2153d398674833aafed3d38 (diff)
downloadnixlib-cd4df565ef77e40eddc98e2d6343ca83b109b358.tar
nixlib-cd4df565ef77e40eddc98e2d6343ca83b109b358.tar.gz
nixlib-cd4df565ef77e40eddc98e2d6343ca83b109b358.tar.bz2
nixlib-cd4df565ef77e40eddc98e2d6343ca83b109b358.tar.lz
nixlib-cd4df565ef77e40eddc98e2d6343ca83b109b358.tar.xz
nixlib-cd4df565ef77e40eddc98e2d6343ca83b109b358.tar.zst
nixlib-cd4df565ef77e40eddc98e2d6343ca83b109b358.zip
msmtp: compiles with keyring support by default (#30584)
* msmtp: compiles with keyring support by default

As it is recommended by msmtp http://msmtp.sourceforge.net/doc/msmtp.html#Authentication
Diffstat (limited to 'pkgs/applications/networking/msmtp')
-rw-r--r--pkgs/applications/networking/msmtp/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/msmtp/default.nix b/pkgs/applications/networking/msmtp/default.nix
index 85e5abdc9b6e..1a409fc885a2 100644
--- a/pkgs/applications/networking/msmtp/default.nix
+++ b/pkgs/applications/networking/msmtp/default.nix
@@ -1,5 +1,6 @@
 { stdenv, lib, fetchurl, autoreconfHook, pkgconfig
 , openssl, netcat-gnu, gnutls, gsasl, libidn, Security
+, withKeyring ? true, libsecret ? null
 , systemd ? null }:
 
 let
@@ -20,7 +21,9 @@ in stdenv.mkDerivation rec {
   ];
 
   buildInputs = [ openssl gnutls gsasl libidn ]
-    ++ stdenv.lib.optional stdenv.isDarwin Security;
+    ++ stdenv.lib.optional stdenv.isDarwin Security
+    ++ stdenv.lib.optional withKeyring libsecret;
+
   nativeBuildInputs = [ autoreconfHook pkgconfig ];
 
   configureFlags =