summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authortalyz <kim.lindberger@gmail.com>2021-08-13 18:42:56 +0200
committertalyz <kim.lindberger@gmail.com>2021-08-17 18:21:15 +0200
commitf8096460bd15d4f13a01cfddf0a30798921fdb42 (patch)
tree56d40267559bab6abffc45a6b2a295d0292093d3 /nixos
parent4197b6dd146c395f1caec3b086334a2b0eff623a (diff)
downloadnixpkgs-f8096460bd15d4f13a01cfddf0a30798921fdb42.tar
nixpkgs-f8096460bd15d4f13a01cfddf0a30798921fdb42.tar.gz
nixpkgs-f8096460bd15d4f13a01cfddf0a30798921fdb42.tar.bz2
nixpkgs-f8096460bd15d4f13a01cfddf0a30798921fdb42.tar.lz
nixpkgs-f8096460bd15d4f13a01cfddf0a30798921fdb42.tar.xz
nixpkgs-f8096460bd15d4f13a01cfddf0a30798921fdb42.tar.zst
nixpkgs-f8096460bd15d4f13a01cfddf0a30798921fdb42.zip
discourse.plugins: Make the updater able to package plugins
Let the update.py script handle the initial, repetitive task of
packaging new plugins. With this in place, the plugin only needs to be
added to the list in `update-plugins` and most of the work will be
done automatically when the script is run. Metadata still needs to be
filled in manually and some packages may of course require additional
work/patching.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/discourse.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/discourse.xml b/nixos/modules/services/web-apps/discourse.xml
index 1d6866e7b35..184c9c6363e 100644
--- a/nixos/modules/services/web-apps/discourse.xml
+++ b/nixos/modules/services/web-apps/discourse.xml
@@ -284,12 +284,23 @@ services.discourse = {
       Ruby dependencies are listed in its
       <filename>plugin.rb</filename> file as function calls to
       <literal>gem</literal>. To construct the corresponding
-      <filename>Gemfile</filename>, run <command>bundle
+      <filename>Gemfile</filename> manually, run <command>bundle
       init</command>, then add the <literal>gem</literal> lines to it
       verbatim.
     </para>
 
     <para>
+      Much of the packaging can be done automatically by the
+      <filename>nixpkgs/pkgs/servers/web-apps/discourse/update.py</filename>
+      script - just add the plugin to the <literal>plugins</literal>
+      list in the <function>update_plugins</function> function and run
+      the script:
+      <programlisting language="bash">
+./update.py update-plugins
+</programlisting>.
+    </para>
+
+    <para>
       Some plugins provide <link
       linkend="module-services-discourse-site-settings">site
       settings</link>. Their defaults can be configured using <xref