Commit graph

19 commits

Author SHA1 Message Date
talyz
04e6b03fa9
discourse.mkDiscoursePlugin: Handle repos with gems directories
Some plugin repos already have a `gems` directory. This lets the
packager choose whether it should be kept and the nix packaged ruby
gems should be copied into it or if it should be removed in favor of
our ruby gems.
2021-08-17 18:21:21 +02:00
talyz
443b318ee9
discourse: Change the path to the auto generated plugin assets
Change the path to the auto generated plugin assets, which defaults to
the plugin's directory and isn't writable at the time of asset
generation.
2021-08-17 18:21:03 +02:00
talyz
6fd5a40cca
discourse.tests: Test the appropriate discourse package
Perform the tests on the package that the `tests` attribute is a child
of, i.e. if `discourseAllPlugins.tests` is built, the tests will run
with the `discourseAllPlugins` package, not the `discourse` package as
previously.
2021-08-17 18:20:55 +02:00
talyz
bb14315d51
discourse: Remove leftover link to unused plugins directory 2021-08-17 18:17:56 +02:00
talyz
c97ae4ad8e
discourse: 2.7.5 -> 2.7.7 2021-08-17 18:17:27 +02:00
Robert Hensing
fbafeb7ad5 treewide: runCommandNoCC -> runCommand
This has been synonymous for ~5y.
2021-08-15 17:36:41 +02:00
Felix Buehler
4f62b05137 discourse.mkDiscoursePlugin: remove phases 2021-07-24 22:20:26 +02:00
talyz
60d78d7f1f
discourse: 2.7.4 -> 2.7.5 2021-07-14 13:18:23 +02:00
talyz
61f4429fbd
discourse: Use terser when building assets
Discourse prefers to use `terser` when building js assets, see
https://github.com/discourse/discourse/pull/12656. It still wants to
find `uglify-js` in order to not fall back to a ruby js compression
library, so let's keep it around for now. A fix for this has been
submitted upstream in
https://github.com/discourse/discourse/pull/13683.
2021-07-14 13:18:17 +02:00
talyz
3300282db3
discourse: Add update-plugins action to update.py 2021-07-14 13:17:55 +02:00
talyz
7671b90919
discourse: Add a proper plugin builder + a few initial packages
Some discourse plugins have Ruby dependencies and require a
specialized builder. This introduces a generic builder that can be
used whether the plugin has Ruby dependencies or not. It also adds a
set of pre-packaged plugins available through `discourse.plugins` and
provides an easy way to add more.
2021-06-24 20:54:14 +02:00
talyz
f0ae7fdf7e
discourse: Patch sources instead of using replace-literal 2021-06-24 19:38:25 +02:00
talyz
9af3672f4f
discourse: Fix plugin support
For plugins to work properly, their assets need to be precompiled
along with the rest of Discourse's assets. This means we need to build
new packages when the list of plugins change.
2021-06-24 19:38:19 +02:00
talyz
f7fb0d20a6
discourse: 2.7.0 -> 2.7.4 2021-06-15 18:19:59 +02:00
Ryan Mulligan
2dec0de3c0 nixos/discourse: Add rsync dependency
It is used for backup importing.
2021-05-28 17:43:02 -07:00
talyz
1f6b48be74 discourse: 2.6.5 -> 2.7.0 2021-05-28 17:43:02 -07:00
talyz
2db1ae068d
discourse: 2.6.3 -> 2.6.5 2021-04-16 14:20:56 +02:00
talyz
3c7df2a3cb
nixos/discourse: Add test 2021-04-05 13:55:44 +02:00
talyz
4d8c8f4722
discourse: init at 2.6.3 2021-04-05 13:54:06 +02:00