git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #132470 from ryantm/dev/ryantm/discourse-plugins

discourseAllPlugins: init discourse-checklist, discourse-data-explorer, discourse-migratepassword

commitbfa06c1608a677feaad36565b250f05b1c4cbaee authorRyan Mulligan <ryan@ryantm.com> dateThu 5 Aug 2021, 14:24 (5 years ago) parent5007f2e32e24e7
8 files changed+102
pkgs/servers/web-apps/discourse/plugins/all-plugins.nix+3 pkgs/servers/web-apps/discourse/plugins/discourse-checklist/default.nix+17 pkgs/servers/web-apps/discourse/plugins/discourse-data-explorer/default.nix+17 pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/Gemfile+6 pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/Gemfile.lock+15 pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/default.nix+18 pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/gemset.nix+22 pkgs/servers/web-apps/discourse/update.py+4
pkgs/servers/web-apps/discourse/plugins/all-plugins.nix+3
@@ -5,8 +5,11 @@ in
55{
66 discourse-calendar = callPackage ./discourse-calendar {};
77 discourse-canned-replies = callPackage ./discourse-canned-replies {};
8+ discourse-checklist = callPackage ./discourse-checklist {};
9+ discourse-data-explorer = callPackage ./discourse-data-explorer {};
810 discourse-github = callPackage ./discourse-github {};
911 discourse-math = callPackage ./discourse-math {};
12+ discourse-migratepassword = callPackage ./discourse-migratepassword {};
1013 discourse-solved = callPackage ./discourse-solved {};
1114 discourse-spoiler-alert = callPackage ./discourse-spoiler-alert {};
1215 discourse-yearly-review = callPackage ./discourse-yearly-review {};
pkgs/servers/web-apps/discourse/plugins/discourse-checklist/default.nixnew file+17
@@ -0,0 +1,17 @@
1+{ lib, mkDiscoursePlugin, fetchFromGitHub }:
2+
3+mkDiscoursePlugin {
4+ name = "discourse-checklist";
5+ src = fetchFromGitHub {
6+ owner = "discourse";
7+ repo = "discourse-checklist";
8+ rev = "6e7b9c5040c55795c7fd4db9569b3e93dad092c2";
9+ sha256 = "sha256-2KAVBrfAvhLZC9idi+ijbVqOCq9rSXbDVEOZS+mWJ10=";
10+ };
11+ meta = with lib; {
12+ homepage = "https://github.com/discourse/discourse-checklist";
13+ maintainers = with maintainers; [ ryantm ];
14+ license = licenses.gpl2Only;
15+ description = "A simple checklist rendering plugin for discourse ";
16+ };
17+}
pkgs/servers/web-apps/discourse/plugins/discourse-data-explorer/default.nixnew file+17
@@ -0,0 +1,17 @@
1+{ lib, mkDiscoursePlugin, fetchFromGitHub }:
2+
3+mkDiscoursePlugin {
4+ name = "discourse-data-explorer";
5+ src = fetchFromGitHub {
6+ owner = "discourse";
7+ repo = "discourse-data-explorer";
8+ rev = "7a348aaa8b2a6b3a75db72e99a7370a1a6fcb2b8";
9+ sha256 = "sha256-4X0oor3dIKrQO5IrScQ9+DBr39R7PJJ8dg9UQseV6IU=";
10+ };
11+ meta = with lib; {
12+ homepage = "https://github.com/discourse/discourse-data-explorer";
13+ maintainers = with maintainers; [ ryantm ];
14+ license = licenses.mit;
15+ description = "SQL Queries for admins in Discourse";
16+ };
17+}
pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/Gemfilenew file+6
@@ -0,0 +1,6 @@
1+# frozen_string_literal: true
2+
3+source "https://rubygems.org"
4+
5+gem 'bcrypt', '3.1.3'
6+gem 'unix-crypt', '1.3.0'
pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/Gemfile.locknew file+15
@@ -0,0 +1,15 @@
1+GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ bcrypt (3.1.3)
5+ unix-crypt (1.3.0)
6+
7+PLATFORMS
8+ x86_64-linux
9+
10+DEPENDENCIES
11+ bcrypt (= 3.1.3)
12+ unix-crypt (= 1.3.0)
13+
14+BUNDLED WITH
15+ 2.2.20
pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/default.nixnew file+18
@@ -0,0 +1,18 @@
1+{ lib, mkDiscoursePlugin, fetchFromGitHub }:
2+
3+mkDiscoursePlugin {
4+ name = "discourse-migratepassword";
5+ bundlerEnvArgs.gemdir = ./.;
6+ src = fetchFromGitHub {
7+ owner = "communiteq";
8+ repo = "discourse-migratepassword";
9+ rev = "91d6a008de91853becca01846aa4662bd227670e";
10+ sha256 = "sha256-aKj0zXyXDnG20qVdhGvn4fwXiBeHFj2pv4bTUP81MP0=";
11+ };
12+ meta = with lib; {
13+ homepage = "https://github.com/communiteq/discourse-migratepassword";
14+ maintainers = with maintainers; [ ryantm ];
15+ license = licenses.gpl2Only;
16+ description = "Support migrated password hashes";
17+ };
18+}
pkgs/servers/web-apps/discourse/plugins/discourse-migratepassword/gemset.nixnew file+22
@@ -0,0 +1,22 @@
1+{
2+ bcrypt = {
3+ groups = ["default"];
4+ platforms = [];
5+ source = {
6+ remotes = ["https://rubygems.org"];
7+ sha256 = "1d2gqv8vry4ps0asb7nn1z4zxi3mcscy7yrim0npdd294ffyinvj";
8+ type = "gem";
9+ };
10+ version = "3.1.3";
11+ };
12+ unix-crypt = {
13+ groups = ["default"];
14+ platforms = [];
15+ source = {
16+ remotes = ["https://rubygems.org"];
17+ sha256 = "1wflipsmmicmgvqilp9pml4x19b337kh6p6jgrzqrzpkq2z52gdq";
18+ type = "gem";
19+ };
20+ version = "1.3.0";
21+ };
22+}
pkgs/servers/web-apps/discourse/update.py+4
@@ -187,9 +187,13 @@ def update_plugins():
187187
188188 """
189189 plugins = [
190+ {'name': 'discourse-calendar'},
190191 {'name': 'discourse-canned-replies'},
192+ {'name': 'discourse-checklist'},
193+ {'name': 'discourse-data-explorer'},
191194 {'name': 'discourse-github'},
192195 {'name': 'discourse-math'},
196+ {'name': 'discourse-migratepassword', 'owner': 'discoursehosting'},
193197 {'name': 'discourse-solved'},
194198 {'name': 'discourse-spoiler-alert'},
195199 {'name': 'discourse-yearly-review'},