mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
opensmtpd: Add sendmail to systemPackages
This commit is contained in:
parent
676f44eb04
commit
2b92e90f91
1 changed files with 5 additions and 0 deletions
|
@ -79,5 +79,10 @@ in {
|
||||||
preStart = "mkdir -p /var/spool";
|
preStart = "mkdir -p /var/spool";
|
||||||
serviceConfig.ExecStart = "${opensmtpd}/sbin/smtpd -d -f ${conf} ${args}";
|
serviceConfig.ExecStart = "${opensmtpd}/sbin/smtpd -d -f ${conf} ${args}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [ (pkgs.runCommand "opensmtpd-sendmail" {} ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s ${opensmtpd}/sbin/smtpctl $out/bin/sendmail
|
||||||
|
'') ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue