syncthing: move systemd files to bin output
This commit is contained in:
parent
2fac8b2740
commit
3fa5f623bf
@ -63,18 +63,18 @@ in {
|
|||||||
done
|
done
|
||||||
|
|
||||||
'' + lib.optionalString (stdenv.isLinux) ''
|
'' + lib.optionalString (stdenv.isLinux) ''
|
||||||
mkdir -p $out/lib/systemd/{system,user}
|
mkdir -p $bin/lib/systemd/{system,user}
|
||||||
|
|
||||||
substitute etc/linux-systemd/system/syncthing-resume.service \
|
substitute etc/linux-systemd/system/syncthing-resume.service \
|
||||||
$out/lib/systemd/system/syncthing-resume.service \
|
$bin/lib/systemd/system/syncthing-resume.service \
|
||||||
--replace /usr/bin/pkill ${procps}/bin/pkill
|
--replace /usr/bin/pkill ${procps}/bin/pkill
|
||||||
|
|
||||||
substitute etc/linux-systemd/system/syncthing@.service \
|
substitute etc/linux-systemd/system/syncthing@.service \
|
||||||
$out/lib/systemd/system/syncthing@.service \
|
$bin/lib/systemd/system/syncthing@.service \
|
||||||
--replace /usr/bin/syncthing $bin/bin/syncthing
|
--replace /usr/bin/syncthing $bin/bin/syncthing
|
||||||
|
|
||||||
substitute etc/linux-systemd/user/syncthing.service \
|
substitute etc/linux-systemd/user/syncthing.service \
|
||||||
$out/lib/systemd/user/syncthing.service \
|
$bin/lib/systemd/user/syncthing.service \
|
||||||
--replace /usr/bin/syncthing $bin/bin/syncthing
|
--replace /usr/bin/syncthing $bin/bin/syncthing
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user