From 3fa5f623bfc570d2cc7bb38f3f11cd34e40c700b Mon Sep 17 00:00:00 2001 From: Ioannis Koutras Date: Tue, 25 Dec 2018 18:46:37 +0200 Subject: [PATCH] syncthing: move systemd files to bin output --- pkgs/applications/networking/syncthing/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/syncthing/default.nix b/pkgs/applications/networking/syncthing/default.nix index 722d0695cc6..8fe9af549bf 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 ''; };