pizauth: fix systemd units substitutions

Should have been part of 4b0398fd2c.
This commit is contained in:
Doron Behar 2026-06-09 17:45:04 +03:00
commit 49091d78a4

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"}
'';