ts: Rely on cc-wrapper to export this env var

This commit is contained in:
hsloan 2017-06-28 16:55:50 -04:00 committed by John Ericson
parent 82a09181a4
commit 60ce1e3b90

View File

@ -1,5 +1,6 @@
{stdenv, fetchurl,
sendmailPath ? "/run/wrappers/bin/sendmail" }:
{ stdenv, fetchurl
, sendmailPath ? "/run/wrappers/bin/sendmail"
}:
stdenv.mkDerivation rec {
@ -7,10 +8,6 @@ stdenv.mkDerivation rec {
installPhase=''make install "PREFIX=$out"'';
crossAttrs = {
makeFlags = "CC=${stdenv.cross.config}-gcc";
};
patchPhase = ''
sed -i s,/usr/sbin/sendmail,${sendmailPath}, mail.c ts.1
'';