diff options
author | Tobias Stenzel <ts@flyingcircus.io> | 2021-09-29 00:17:25 +0200 |
---|---|---|
committer | Tobias Stenzel <ts@flyingcircus.io> | 2021-10-26 23:24:10 +0200 |
commit | 34ba7d2fdc6bc624324758b493e8c90fc0eb388e (patch) | |
tree | a4b9d1f7fcf462d0ba7c3bad7a0995650b91406f /pkgs/servers/web-apps/discourse | |
parent | 3251a4a7d2df899598b96518ba1d5ce339ba96f1 (diff) |
discourse.plugins.discourse-voting: Init
Diffstat (limited to 'pkgs/servers/web-apps/discourse')
3 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/servers/web-apps/discourse/plugins/all-plugins.nix b/pkgs/servers/web-apps/discourse/plugins/all-plugins.nix index 40672534a9f8a..e36f1416456a4 100644 --- a/pkgs/servers/web-apps/discourse/plugins/all-plugins.nix +++ b/pkgs/servers/web-apps/discourse/plugins/all-plugins.nix @@ -19,5 +19,6 @@ in discourse-saved-searches = callPackage ./discourse-saved-searches {}; discourse-solved = callPackage ./discourse-solved {}; discourse-spoiler-alert = callPackage ./discourse-spoiler-alert {}; + discourse-voting = callPackage ./discourse-voting {}; discourse-yearly-review = callPackage ./discourse-yearly-review {}; } diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-voting/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-voting/default.nix new file mode 100644 index 0000000000000..f7748f5a52d37 --- /dev/null +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-voting/default.nix @@ -0,0 +1,17 @@ +{ lib, mkDiscoursePlugin, fetchFromGitHub }: + +mkDiscoursePlugin { + name = "discourse-voting"; + src = fetchFromGitHub { + owner = "discourse"; + repo = "discourse-voting"; + rev = "fc4d23174eba1a57ddcba93eaf4a4e75d469d4a4"; + sha256 = "07mj667qn387kaafg475f36pgnannsrb2bdqi0zj487av43252qb"; + }; + meta = with lib; { + homepage = "https://github.com/discourse/discourse-voting"; + maintainers = with maintainers; [ dpausp ]; + license = licenses.gpl2Only; + description = "Adds the ability for voting on a topic within a specified category in Discourse"; + }; +} diff --git a/pkgs/servers/web-apps/discourse/update.py b/pkgs/servers/web-apps/discourse/update.py index 46317691bd397..8352ac09f367a 100755 --- a/pkgs/servers/web-apps/discourse/update.py +++ b/pkgs/servers/web-apps/discourse/update.py @@ -218,6 +218,7 @@ def update_plugins(): {'name': 'discourse-saved-searches'}, {'name': 'discourse-solved'}, {'name': 'discourse-spoiler-alert'}, + {'name': 'discourse-voting'}, {'name': 'discourse-yearly-review'}, ] |