tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
syncthing: move systemd files to bin output
Ioannis Koutras
7 years ago
3fa5f623
2fac8b27
+4
-4
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
syncthing
default.nix
+4
-4
pkgs/applications/networking/syncthing/default.nix
···
63
63
done
64
64
65
65
'' + lib.optionalString (stdenv.isLinux) ''
66
66
-
mkdir -p $out/lib/systemd/{system,user}
66
66
+
mkdir -p $bin/lib/systemd/{system,user}
67
67
68
68
substitute etc/linux-systemd/system/syncthing-resume.service \
69
69
-
$out/lib/systemd/system/syncthing-resume.service \
69
69
+
$bin/lib/systemd/system/syncthing-resume.service \
70
70
--replace /usr/bin/pkill ${procps}/bin/pkill
71
71
72
72
substitute etc/linux-systemd/system/syncthing@.service \
73
73
-
$out/lib/systemd/system/syncthing@.service \
73
73
+
$bin/lib/systemd/system/syncthing@.service \
74
74
--replace /usr/bin/syncthing $bin/bin/syncthing
75
75
76
76
substitute etc/linux-systemd/user/syncthing.service \
77
77
-
$out/lib/systemd/user/syncthing.service \
77
77
+
$bin/lib/systemd/user/syncthing.service \
78
78
--replace /usr/bin/syncthing $bin/bin/syncthing
79
79
'';
80
80
};