add systemd file

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
2024-07-06 19:57:26 +02:00
parent 2b253e03eb
commit cb5590b2b5
3 changed files with 21 additions and 0 deletions

View File

@@ -22,6 +22,13 @@ pkgs.python3Packages.buildPythonPackage rec {
nativeCheckInputs = [ pkgs.python3Packages.pytestCheckHook ];
pythonImportsCheck = [ "smtprd_ng" ];
postInstall = ''
install -D -m 644 systemd/smtprd-ng.service \
$out/lib/systemd/system/smtprd-ng.service
substituteInPlace $out/lib/systemd/system/smtprd-ng.service \
--replace-fail @smtprd@ "$out/bin/smtprd-ng"
'';
meta = {
description = "SMTP forwarding relay daemon with signing and encryption";
homepage = "https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3gWc1qgaeZaoGwL4WTstLNoqjayM";