oo7-server: add option to use wrapped daemon

This commit is contained in:
Salva
2026-07-10 12:15:01 -06:00
parent 791cee16bd
commit 45b80cfb99
+7
View File
@@ -1,4 +1,5 @@
{
lib,
cargo,
meson,
ninja,
@@ -8,6 +9,7 @@
rustc,
stdenv,
systemdLibs,
useWrappedDaemon ? true,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "oo7-server";
@@ -29,6 +31,11 @@ stdenv.mkDerivation (finalAttrs: {
systemdLibs
];
postFixup = lib.optionalString useWrappedDaemon ''
substituteInPlace "$out/share/systemd/user/oo7-daemon.service" \
--replace-fail "$out/libexec/oo7-daemon" "/run/wrappers/bin/oo7-daemon"
'';
meta = {
inherit (oo7.meta)
homepage