diff options
author | Yt <raphael@megzari.com> | 2024-05-31 21:11:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 21:11:45 +0000 |
commit | e45abe6d478dc2cc40a94ebf99c7eeeffac7abd5 (patch) | |
tree | 82138e9e361adbbd37ff47494e365facdcb33e79 /pkgs | |
parent | c8b5e00e1c10256e0094303afd34d85ffa486953 (diff) | |
parent | 336232debdc95311595c1ce56ef8690dcd334eda (diff) |
Merge pull request #313634 from onny/stalwart-systemd
stalwart-mail: package und use upstream systemd unit
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/st/stalwart-mail/package.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/by-name/st/stalwart-mail/package.nix b/pkgs/by-name/st/stalwart-mail/package.nix index 68e0d97bebb53..5ef0a24af0bef 100644 --- a/pkgs/by-name/st/stalwart-mail/package.nix +++ b/pkgs/by-name/st/stalwart-mail/package.nix @@ -62,6 +62,13 @@ rustPlatform.buildRustPackage { ROCKSDB_LIB_DIR = "${rocksdb}/lib"; }; + postInstall = '' + mkdir -p $out/lib/systemd/system + + substitute resources/systemd/stalwart-mail.service $out/lib/systemd/system/stalwart-mail.service \ + --replace "__PATH__" "$out" + ''; + # Tests require reading to /etc/resolv.conf doCheck = false; |