maddy: fix binary path substitution in upstream systemd unit

This commit is contained in:
Nick Cao 2021-10-15 16:59:39 +08:00
parent f2a619bcca
commit 31c9a8cf7b
No known key found for this signature in database
GPG Key ID: 068A56CEF48FA2C1

View File

@ -29,11 +29,11 @@ buildGoModule rec {
mkdir -p $out/lib/systemd/system
substitute dist/systemd/maddy.service $out/lib/systemd/system/maddy.service \
--replace "/usr/bin/maddy" "$out/bin/maddy" \
--replace "/usr/local/bin/maddy" "$out/bin/maddy" \
--replace "/bin/kill" "${coreutils}/bin/kill"
substitute dist/systemd/maddy@.service $out/lib/systemd/system/maddy@.service \
--replace "/usr/bin/maddy" "$out/bin/maddy" \
--replace "/usr/local/bin/maddy" "$out/bin/maddy" \
--replace "/bin/kill" "${coreutils}/bin/kill"
'';