From 631edf7de8e6f2d39fbaf2da48f9b2bfff03ad86 Mon Sep 17 00:00:00 2001 From: Ioannis Koutras Date: Wed, 27 Jul 2016 17:27:14 +0300 Subject: [PATCH] syncthing-inotify: init at 0.8.3 --- .../networking/syncthing/inotify-deps.json | 38 +++++++++++++++++++ .../networking/syncthing/inotify.nix | 26 +++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 66 insertions(+) create mode 100644 pkgs/applications/networking/syncthing/inotify-deps.json create mode 100644 pkgs/applications/networking/syncthing/inotify.nix 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 f9fb85ebe6c4..c69d66c3752c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14735,6 +14735,8 @@ in syncthing013 = callPackage ../applications/networking/syncthing013 { }; + syncthing-inotify = callPackage ../applications/networking/syncthing/inotify.nix { }; + # linux only by now synergy = callPackage ../applications/misc/synergy { };