summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-06-01 23:42:36 -0500
committerGitHub <noreply@github.com>2020-06-01 23:42:36 -0500
commita69f9e5a69c5a46c9c60d1bd4f7f671bb5cacba4 (patch)
tree4cabe0f6035d5cb08e20389d93814beca3c9b074
parentMerge pull request #89284 from ryantm/fix-stalebot-msg (diff)
parentgoimapnotify: init at 2.0 (diff)
downloadnixpkgs-a69f9e5a69c5a46c9c60d1bd4f7f671bb5cacba4.tar.gz
Merge pull request #83385 from wohanley/master
goimapnotify: init at 2.0
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/tools/networking/goimapnotify/default.nix26
-rw-r--r--pkgs/tools/networking/goimapnotify/deps.nix66
-rw-r--r--pkgs/top-level/all-packages.nix2
4 files changed, 100 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 05f67f730a2f..171524980538 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -8411,6 +8411,12 @@
githubId = 895853;
name = "Frank Doepper";
};
+ wohanley = {
+ email = "me@wohanley.com";
+ github = "wohanley";
+ githubId = 1322287;
+ name = "William O'Hanley";
+ };
womfoo = {
email = "kranium@gikos.net";
github = "womfoo";
diff --git a/pkgs/tools/networking/goimapnotify/default.nix b/pkgs/tools/networking/goimapnotify/default.nix
new file mode 100644
index 000000000000..fb64ff65cc15
--- /dev/null
+++ b/pkgs/tools/networking/goimapnotify/default.nix
@@ -0,0 +1,26 @@
+{ buildGoPackage, fetchFromGitLab, lib }:
+
+buildGoPackage rec {
+ pname = "goimapnotify";
+ version = "2.0";
+
+ goPackagePath = "gitlab.com/shackra/goimapnotify";
+
+ src = fetchFromGitLab {
+ owner = "shackra";
+ repo = "goimapnotify";
+ rev = "${version}";
+ sha256 = "1d42gd3m2rkvy985d181dbcm5i3f7xsg2z8z6s4bpvw24pfnzs42";
+ };
+
+ goDeps = ./deps.nix;
+
+ meta = with lib; {
+ description =
+ "Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE";
+ homepage = "https://gitlab.com/shackra/goimapnotify";
+ license = licenses.gpl3Plus;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ wohanley ];
+ };
+}
diff --git a/pkgs/tools/networking/goimapnotify/deps.nix b/pkgs/tools/networking/goimapnotify/deps.nix
new file mode 100644
index 000000000000..fc377c50be4c
--- /dev/null
+++ b/pkgs/tools/networking/goimapnotify/deps.nix
@@ -0,0 +1,66 @@
+# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
+[
+ {
+ goPackagePath = "github.com/emersion/go-imap";
+ fetch = {
+ type = "git";
+ url = "https://github.com/emersion/go-imap";
+ rev = "b7db4a2bc5cc04fb568fb036a438da43ee9a9f78";
+ sha256 = "1v5hp02k9rfdq7gqiydz575dw6a991pspynhxypv0fvgh1vgqs0s";
+ };
+ }
+ {
+ goPackagePath = "github.com/emersion/go-imap-idle";
+ fetch = {
+ type = "git";
+ url = "https://github.com/emersion/go-imap-idle";
+ rev = "2af93776db6b042cc1116b0d0af00d7f58eea696";
+ sha256 = "19dh8sryjr3a8f0bgwywiz2fqccxhf4j66sm0w1jkjzh131f3pr7";
+ };
+ }
+ {
+ goPackagePath = "github.com/emersion/go-sasl";
+ fetch = {
+ type = "git";
+ url = "https://github.com/emersion/go-sasl";
+ rev = "7e096a0a6197b89989e8cc31016daa67c8c62051";
+ sha256 = "0mr9nzi4wc3ck730zqfqwmy8wk7d90h80yvvivqnxyfyadqy48kd";
+ };
+ }
+ {
+ goPackagePath = "github.com/konsorten/go-windows-terminal-sequences";
+ fetch = {
+ type = "git";
+ url = "https://github.com/konsorten/go-windows-terminal-sequences";
+ rev = "f55edac94c9bbba5d6182a4be46d86a2c9b5b50e";
+ sha256 = "09mn209ika7ciy87xf2x31dq5fnqw39jidgaljvmqxwk7ff1hnx7";
+ };
+ }
+ {
+ goPackagePath = "github.com/sirupsen/logrus";
+ fetch = {
+ type = "git";
+ url = "https://github.com/sirupsen/logrus";
+ rev = "8bdbc7bcc01dcbb8ec23dc8a28e332258d25251f";
+ sha256 = "1m7ny9jkb98cxqhsp13xa5hnqh1s9f25x04q6arsala4zswsw33c";
+ };
+ }
+ {
+ goPackagePath = "golang.org/x/sys";
+ fetch = {
+ type = "git";
+ url = "https://go.googlesource.com/sys";
+ rev = "a129542de9ae0895210abff9c95d67a1f33cb93d";
+ sha256 = "13p5q7s25rsvfkk8fcwf432j8djf7bjg7chs296rzlig4vqcdxi4";
+ };
+ }
+ {
+ goPackagePath = "golang.org/x/text";
+ fetch = {
+ type = "git";
+ url = "https://go.googlesource.com/text";
+ rev = "342b2e1fbaa52c93f31447ad2c6abc048c63e475";
+ sha256 = "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh";
+ };
+ }
+]
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 072c892ccd60..9107c4051dcd 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -984,6 +984,8 @@ in
glasgow = with python3Packages; toPythonApplication glasgow;
+ goimapnotify = callPackage ../tools/networking/goimapnotify { };
+
gomatrix = callPackage ../applications/misc/gomatrix { };
gucci = callPackage ../tools/text/gucci { };