Skip to content

Commit

Permalink
msmtp: use netcat-gnu to unbreak darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hoeg committed Mar 8, 2017
1 parent 722b129 commit 6f68eb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 6f68eb7

Please sign in to comment.