about summary refs log tree commit diff
path: root/pkgs/applications/networking/msmtp
diff options
context:
space:
mode:
authorPeter Hoeg <peter@speartail.com>2017-03-08 15:35:33 +0800
committerPeter Hoeg <peter@speartail.com>2017-03-08 16:02:35 +0800
commit6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6 (patch)
tree200ce73c264882c82458e616d21d51023d954ec4 /pkgs/applications/networking/msmtp
parent722b12965290a55a758cbf7aee587682edd5e5af (diff)
downloadnixlib-6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6.tar
nixlib-6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6.tar.gz
nixlib-6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6.tar.bz2
nixlib-6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6.tar.lz
nixlib-6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6.tar.xz
nixlib-6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6.tar.zst
nixlib-6f68eb7c7ec8f17e33a93330c4a387e8bc8048c6.zip
msmtp: use netcat-gnu to unbreak darwin
Diffstat (limited to 'pkgs/applications/networking/msmtp')
-rw-r--r--pkgs/applications/networking/msmtp/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/networking/msmtp/default.nix b/pkgs/applications/networking/msmtp/default.nix
index 1eab140e1d7a..156ea589388d 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, gnutls, gsasl, libidn, Security, systemd }:
+, openssl, netcat-gnu, gnutls, gsasl, libidn, Security
+, systemd ? null }:
 
 let
   tester = "n"; # {x| |p|P|n|s}
@@ -28,7 +29,7 @@ in stdenv.mkDerivation rec {
   postInstall = ''
     substitute scripts/msmtpq/msmtpq $out/bin/msmtpq \
       --replace @msmtp@      $out/bin/msmtp \
-      --replace @nc@         ${netcat}/bin/nc \
+      --replace @nc@         ${netcat-gnu}/bin/nc \
       --replace @journal@    ${journal} \
       ${lib.optionalString (journal == "y") "--replace @systemdcat@ ${systemd}/bin/systemd-cat" } \
       --replace @test@       ${tester}