msmtp: Enable on OS X with Keychain integration.

This commit is contained in:
Marcus Crestani 2015-11-19 08:38:11 +01:00
parent 811e1b01e5
commit 8b3d03a058
2 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl, pkgconfig, gnutls, gsasl, libidn }: { stdenv, fetchurl, openssl, pkgconfig, gnutls, gsasl, libidn, Security }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.6.2"; version = "1.6.2";
@ -9,7 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "12c7ljahb06pgn8yvvw526xvr11vnr6d4nr0apylixddpxycsvig"; sha256 = "12c7ljahb06pgn8yvvw526xvr11vnr6d4nr0apylixddpxycsvig";
}; };
buildInputs = [ openssl pkgconfig gnutls gsasl libidn ]; buildInputs = [ openssl pkgconfig gnutls gsasl libidn ]
++ stdenv.lib.optional stdenv.isDarwin Security;
configureFlags =
stdenv.lib.optional stdenv.isDarwin [ "--with-macosx-keyring" ];
postInstall = '' postInstall = ''
cp scripts/msmtpq/msmtp-queue scripts/msmtpq/msmtpq $prefix/bin/ cp scripts/msmtpq/msmtp-queue scripts/msmtpq/msmtpq $prefix/bin/
@ -21,6 +25,6 @@ stdenv.mkDerivation rec {
homepage = "http://msmtp.sourceforge.net/"; homepage = "http://msmtp.sourceforge.net/";
license = stdenv.lib.licenses.gpl3; license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.garbas ]; maintainers = [ stdenv.lib.maintainers.garbas ];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.unix;
}; };
} }

View File

@ -12468,7 +12468,9 @@ let
sxhkd = callPackage ../applications/window-managers/sxhkd { }; sxhkd = callPackage ../applications/window-managers/sxhkd { };
msmtp = callPackage ../applications/networking/msmtp { }; msmtp = callPackage ../applications/networking/msmtp {
inherit (darwin.apple_sdk.frameworks) Security;
};
imapfilter = callPackage ../applications/networking/mailreaders/imapfilter.nix { imapfilter = callPackage ../applications/networking/mailreaders/imapfilter.nix {
lua = lua5; lua = lua5;