diff options
author | Ioannis Koutras <ioannis.koutras@gmail.com> | 2018-12-25 18:46:37 +0200 |
---|---|---|
committer | Ioannis Koutras <ioannis.koutras@gmail.com> | 2019-02-06 20:23:13 +0100 |
commit | 3fa5f623bfc570d2cc7bb38f3f11cd34e40c700b (patch) | |
tree | 6cb9f744d2030c9f84e2b9216cb77bfea56b680a /pkgs/applications/networking/syncthing | |
parent | 2fac8b2740c56b5471f366f6f3f4ffa218f323e8 (diff) |
syncthing: move systemd files to bin output
Diffstat (limited to 'pkgs/applications/networking/syncthing')
-rw-r--r-- | pkgs/applications/networking/syncthing/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/networking/syncthing/default.nix b/pkgs/applications/networking/syncthing/default.nix index 722d0695cc63..8fe9af549bf7 100644 --- a/pkgs/applications/networking/syncthing/default.nix +++ b/pkgs/applications/networking/syncthing/default.nix @@ -63,18 +63,18 @@ in { done '' + 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 \ - $out/lib/systemd/system/syncthing-resume.service \ + $bin/lib/systemd/system/syncthing-resume.service \ --replace /usr/bin/pkill ${procps}/bin/pkill 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 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 ''; }; |