diff --git a/pkgs/applications/networking/syncthing/inotify-deps.json b/pkgs/applications/networking/syncthing/inotify-deps.json new file mode 100644 index 000000000000..e0cc9680e228 --- /dev/null +++ b/pkgs/applications/networking/syncthing/inotify-deps.json @@ -0,0 +1,38 @@ +[ + { + "goPackagePath": "github.com/cenkalti/backoff", + "fetch": { + "type": "git", + "url": "https://github.com/cenkalti/backoff", + "rev": "cdf48bbc1eb78d1349cbda326a4a037f7ba565c6", + "sha256": "0dg7hvpv0a1db8qriygz1jqgp16v8k505b197x9902z7z6lldgbh" + } + }, + { + "goPackagePath": "github.com/gobwas/glob", + "fetch": { + "type": "git", + "url": "https://github.com/gobwas/glob", + "rev": "ce6abff51712df5da11095fb41dd4b0353559797", + "sha256": "1gxv4nnn3f9hw1ncdmhsr8fbfdma2h713ima7b4k28gxydfa8i9m" + } + }, + { + "goPackagePath": "github.com/syncthing/syncthing", + "fetch": { + "type": "git", + "url": "https://github.com/syncthing/syncthing", + "rev": "66a506e72b9dcc749d09a03cb120ba86bbf3d7f8", + "sha256": "0is4f1r3im2bbmbca9fafzxffikxaf86vd6f851831fk5wi4pzw9" + } + }, + { + "goPackagePath": "github.com/zillode/notify", + "fetch": { + "type": "git", + "url": "https://github.com/zillode/notify", + "rev": "2da5cc9881e8f16bab76b63129c7781898f97d16", + "sha256": "0qwsj730p5mivp2xw9zr5vq8xr7rr9cxjmi564wgmsn7dcvqnr40" + } + } +] \ No newline at end of file diff --git a/pkgs/applications/networking/syncthing/inotify.nix b/pkgs/applications/networking/syncthing/inotify.nix new file mode 100644 index 000000000000..4f001794e86d --- /dev/null +++ b/pkgs/applications/networking/syncthing/inotify.nix @@ -0,0 +1,26 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "syncthing-inotify-${version}"; + version = "0.8.3"; + + goPackagePath = "github.com/syncthing/syncthing-inotify"; + + src = fetchFromGitHub { + owner = "syncthing"; + repo = "syncthing-inotify"; + rev = "v${version}"; + sha256 = "194pbz9zzxaz0vri93czpbsxl85znlba2gy61mjgyr0dm2h4s6yw"; + }; + + goDeps = ./inotify-deps.json; + + meta = { + 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; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 96755b35c325..ac96ea3448fc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14737,6 +14737,8 @@ in syncthing013 = callPackage ../applications/networking/syncthing013 { }; + syncthing-inotify = callPackage ../applications/networking/syncthing/inotify.nix { }; + # linux only by now synergy = callPackage ../applications/misc/synergy { };