pizauth: fix systemd units substitutions

Should have been part of 4b0398fd2c.

(cherry picked from commit 49091d78a4)
This commit is contained in:
Doron Behar
2026-06-09 17:45:04 +03:00
committed by github-actions[bot]
parent fd22b0bd7a
commit 869bc11be2

View File

@@ -19,6 +19,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-9cDVbDCb8vY6KxreyiMX3gp13bXZpxTQOwYbk6TEVpc=";
preConfigure = ''
substituteInPlace lib/systemd/user/pizauth.service \
--replace-fail /usr/bin/ ''${!outputBin}/bin/
'';
postInstall = ''
make PREFIX=$out install ${lib.optionalString stdenv.hostPlatform.isLinux "install-systemd"}
'';