summaryrefslogtreecommitdiff
path: root/pkgs/applications/networking/syncthing/inotify.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/syncthing/inotify.nix')
-rw-r--r--pkgs/applications/networking/syncthing/inotify.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/pkgs/applications/networking/syncthing/inotify.nix b/pkgs/applications/networking/syncthing/inotify.nix
index ea8d73cb8639..f1343d4a67ed 100644
--- a/pkgs/applications/networking/syncthing/inotify.nix
+++ b/pkgs/applications/networking/syncthing/inotify.nix
@@ -15,12 +15,23 @@ buildGoPackage rec {
goDeps = ./inotify-deps.nix;
- meta = {
+ postInstall = ''
+ mkdir -p $bin/etc/systemd/{system,user}
+
+ substitute $src/etc/linux-systemd/system/syncthing-inotify@.service \
+ $bin/etc/systemd/system/syncthing-inotify@.service \
+ --replace /usr/bin/syncthing-inotify $bin/bin/syncthing-inotify
+
+ substitute $src/etc/linux-systemd/user/syncthing-inotify.service \
+ $bin/etc/systemd/user/syncthing-inotify.service \
+ --replace /usr/bin/syncthing-inotify $bin/bin/syncthing-inotify
+ '';
+
+ meta = with stdenv.lib; {
homepage = https://github.com/syncthing/syncthing-inotify;
description = "File watcher intended for use with Syncthing";
- license = stdenv.lib.licenses.mpl20;
- maintainers = with stdenv.lib.maintainers; [ joko ];
- platforms = with stdenv.lib.platforms; linux ++ freebsd ++ openbsd ++ netbsd;
+ license = licenses.mpl20;
+ maintainers = with maintainers; [ joko peterhoeg ];
+ platforms = platforms.unix;
};
-
}