syncthing,qsyncthingtray: remove syncthing-inotify

syncthing-inotify is replaced by the new syncthing "fswatcher" feature.

+8 -85
+7 -23
nixos/modules/services/networking/syncthing.nix
··· 16 16 available on http://127.0.0.1:8384/. 17 17 ''; 18 18 19 - useInotify = mkOption { 20 - type = types.bool; 21 - default = false; 22 - description = "Provide syncthing-inotify as a service."; 23 - }; 24 - 25 19 systemService = mkOption { 26 20 type = types.bool; 27 21 default = true; ··· 90 84 }; 91 85 }; 92 86 87 + imports = [ 88 + (mkRemovedOptionModule ["services" "syncthing" "useInotify"] '' 89 + This option was removed because syncthing now has the inotify functionality included under the name "fswatcher". 90 + It can be enabled on a per-folder basis through the webinterface. 91 + '') 92 + ]; 93 93 94 94 ###### implementation 95 95 ··· 100 100 allowedUDPPorts = [ 21027 ]; 101 101 }; 102 102 103 - systemd.packages = [ pkgs.syncthing ] 104 - ++ lib.optional cfg.useInotify pkgs.syncthing-inotify; 103 + systemd.packages = [ pkgs.syncthing ]; 105 104 106 105 users = mkIf (cfg.user == defaultUser) { 107 106 extraUsers."${defaultUser}" = ··· 125 124 STNOUPGRADE = "yes"; 126 125 inherit (cfg) all_proxy; 127 126 } // config.networking.proxy.envVars; 128 - wants = mkIf cfg.useInotify [ "syncthing-inotify.service" ]; 129 127 wantedBy = [ "multi-user.target" ]; 130 128 serviceConfig = { 131 129 Restart = "on-failure"; ··· 140 138 141 139 syncthing-resume = { 142 140 wantedBy = [ "suspend.target" ]; 143 - }; 144 - 145 - syncthing-inotify = mkIf (cfg.systemService && cfg.useInotify) { 146 - description = "Syncthing Inotify File Watcher service"; 147 - after = [ "network.target" "syncthing.service" ]; 148 - requires = [ "syncthing.service" ]; 149 - wantedBy = [ "multi-user.target" ]; 150 - serviceConfig = { 151 - SuccessExitStatus = "2"; 152 - RestartForceExitStatus = "3"; 153 - Restart = "on-failure"; 154 - User = cfg.user; 155 - ExecStart = "${pkgs.syncthing-inotify.bin}/bin/syncthing-inotify -home=${cfg.dataDir} -logflags=0"; 156 - }; 157 141 }; 158 142 }; 159 143 };
+1 -2
pkgs/applications/misc/qsyncthingtray/default.nix
··· 1 1 { mkDerivation, stdenv, lib, fetchFromGitHub, fetchpatch, procps ? null 2 2 , qtbase, qtwebengine, qtwebkit 3 3 , cmake 4 - , syncthing, syncthing-inotify ? null 4 + , syncthing 5 5 , preferQWebView ? false 6 6 , preferNative ? true }: 7 7 ··· 34 34 ${lib.optionalString stdenv.isLinux '' 35 35 substituteInPlace includes/platforms/linux/posixUtils.hpp \ 36 36 --replace '"/usr/local/bin/syncthing"' '"${syncthing}/bin/syncthing"' \ 37 - --replace '"/usr/local/bin/syncthing-inotify"' '"${syncthing-inotify}/bin/syncthing-inotify"' \ 38 37 --replace '"pgrep -x' '"${procps}/bin/pgrep -x' 39 38 ''} 40 39
-21
pkgs/applications/networking/syncthing/inotify-deps.nix
··· 1 - # This file was generated by https://github.com/kamilchm/go2nix v1.2.0 2 - [ 3 - { 4 - goPackagePath = "github.com/syncthing/syncthing"; 5 - fetch = { 6 - type = "git"; 7 - url = "https://github.com/syncthing/syncthing"; 8 - rev = "d0061c172caecd3baf61f3ff720f56fdb805186e"; 9 - sha256 = "08cn0ym4arjppbnfn2b37crarwmiqbj4yjr7kinhdxx9gqm5wkj1"; 10 - }; 11 - } 12 - { 13 - goPackagePath = "golang.org/x/sys"; 14 - fetch = { 15 - type = "git"; 16 - url = "https://go.googlesource.com/sys"; 17 - rev = "fb4cac33e3196ff7f507ab9b2d2a44b0142f5b5a"; 18 - sha256 = "1y5lx3f7rawfxrqg0s2ndgbjjjaml3rn3f27h9w9c5mw3xk7lrgj"; 19 - }; 20 - } 21 - ]
-37
pkgs/applications/networking/syncthing/inotify.nix
··· 1 - { stdenv, buildGoPackage, fetchFromGitHub }: 2 - 3 - buildGoPackage rec { 4 - name = "syncthing-inotify-${version}"; 5 - version = "0.8.6"; 6 - 7 - goPackagePath = "github.com/syncthing/syncthing-inotify"; 8 - 9 - src = fetchFromGitHub { 10 - owner = "syncthing"; 11 - repo = "syncthing-inotify"; 12 - rev = "v${version}"; 13 - sha256 = "0z1zpb7av4q5nj2d4yda9jcbjdz4yj3823c29y73yf0gfp26lppl"; 14 - }; 15 - 16 - goDeps = ./inotify-deps.nix; 17 - 18 - postInstall = '' 19 - mkdir -p $bin/lib/systemd/{system,user} 20 - 21 - substitute $src/etc/linux-systemd/system/syncthing-inotify@.service \ 22 - $bin/lib/systemd/system/syncthing-inotify@.service \ 23 - --replace /usr/bin/syncthing-inotify $bin/bin/syncthing-inotify 24 - 25 - substitute $src/etc/linux-systemd/user/syncthing-inotify.service \ 26 - $bin/lib/systemd/user/syncthing-inotify.service \ 27 - --replace /usr/bin/syncthing-inotify $bin/bin/syncthing-inotify 28 - ''; 29 - 30 - meta = with stdenv.lib; { 31 - homepage = https://github.com/syncthing/syncthing-inotify; 32 - description = "File watcher intended for use with Syncthing"; 33 - license = licenses.mpl20; 34 - maintainers = with maintainers; [ joko peterhoeg ]; 35 - platforms = platforms.unix; 36 - }; 37 - }
-2
pkgs/top-level/all-packages.nix
··· 17525 17525 17526 17526 syncthing-gtk = python2Packages.callPackage ../applications/networking/syncthing-gtk { }; 17527 17527 17528 - syncthing-inotify = callPackage ../applications/networking/syncthing/inotify.nix { }; 17529 - 17530 17528 syncthing-tray = callPackage ../applications/misc/syncthing-tray { }; 17531 17529 17532 17530 # linux only by now