From 31c9a8cf7b460067d66cea70b4ea4f2253cdf00c Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 15 Oct 2021 16:59:39 +0800 Subject: [PATCH] maddy: fix binary path substitution in upstream systemd unit --- pkgs/servers/maddy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/maddy/default.nix b/pkgs/servers/maddy/default.nix index 3f495add9f18..3381b7858beb 100644 --- a/pkgs/servers/maddy/default.nix +++ b/pkgs/servers/maddy/default.nix @@ -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" '';