Commit Graph

103 Commits

Author SHA1 Message Date
Lord-Valen
75c7894435 nodePackages.terser: use buildNpmPackage 2023-09-13 10:23:09 +02:00
Maximilian Bosch
77d4f4feee
discourse.assets: work around cannot execute: required file not found
`yarn run patch-package` as `postinstall`-hook doesn't work because it
has a shebang using `/usr/bin/env` which isn't available in the sandbox.
Removing the postinstall hook and manually running this after
`patchShebangs` appears to solve the issue.

Relevant error log of the build error
(`NIXPKGS_ALLOW_INSECURE=1 nix-build -A discourse.assets`)

    error /build/source/app/assets/javascripts/node_modules/discourse: Command failed.
    Exit code: 127
    Command: patch-package
    Arguments:
    Directory: /build/source/app/assets/javascripts/node_modules/discourse
    Output:
    /bin/sh: line 1: /build/source/app/assets/javascripts/node_modules/.bin/patch-package: cannot execute: required file not found
    info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2023-06-24 12:27:44 +02:00
Kira Bruneau
e12199b8a0 dart-sass-embedded: build from source 2023-04-29 12:16:23 -04:00
IndeedNotJames
06fa6807d2
discourseAllPlugins: update all 2023-04-28 12:14:58 +02:00
IndeedNotJames
f88be46556
discourse: 3.1.0.beta2 -> 3.1.0.beta4
https://meta.discourse.org/t/3-1-0-beta4-new-notifications-menu-chat-and-sidebar-improvements-security-fixes-and-more/262044
https://meta.discourse.org/t/3-1-0-beta3-search-optimizations-resizable-chat-drawer-new-api-scopes-and-more/258274
diff: https://github.com/discourse/discourse/compare/v3.1.0.beta2..v3.1.0.beta4
2023-04-28 12:14:58 +02:00
Sandro Jäckel
aad577bd30 nodejs*: normalise names to better fit other packages
Versioned package attributes are usually named like $pname_$version
eg: nodejs-14_x -> nodejs_14
2023-04-25 11:28:17 +02:00
talyz
ca6aa07304
discourse: Document how to update 2023-02-09 17:36:48 +01:00
talyz
0dcc8c9adb
discourse: Update plugins
Co-authored-by: Paul Grayson <pdg@alum.mit.edu>
2023-02-09 17:36:36 +01:00
talyz
8fb5bab784
discourse: 2.9.0.beta14 -> 3.1.0.beta2 2023-02-09 17:36:29 +01:00
talyz
aef5ef0108
discourse: Reformat function arguments 2023-02-09 14:52:01 +01:00
Benno Bielmeier
7215603cb9 discourse.plugins.discourse-reactions: Init 2023-01-31 12:19:20 +09:00
Maximilian Bosch
8b81191211
discoursePlugins: update all 2022-12-03 16:03:23 +01:00
WilliButz
4f61987758
discourse: 2.9.0.beta12 -> 2.9.0.beta14
Co-authored-by: Maximilian Bosch <maximilian@mbosch.me>
2022-12-03 09:58:03 +01:00
Ryan Mulligan
4b5d9e6514 discourse: 2.9.0.beta11 -> 2.9.0.beta12 2022-11-14 12:53:04 -08:00
Ryan Mulligan
e9f3ebbc17 discourse: 2.9.0.beta10 -> 2.9.0.beta11 2022-11-01 16:20:47 -07:00
Yureka
499b26b7b8 discourse.assets: pass yarnOfflineCache as environment variable 2022-10-02 23:47:49 +02:00
Ryan Mulligan
3005b8858e discourse: 2.9.0.beta9 -> 2.9.0.beta10 2022-09-30 13:11:34 -07:00
Ryan Mulligan
093b3a604f
Merge pull request #186331 from ryantm/discourse-bbcode-color
discourse.plugins.discourse-bbcode-color: init
2022-09-16 12:27:36 -07:00
Artturi
79c42aa06c
Merge pull request #186564 from Artturin/crossevalfixes
Fixes for cross-compilation
2022-08-27 17:49:00 +03:00
Emery Hemingway
ff69a9ad9d discourse.plugins.discourse-oauth2-basic: init 2022-08-19 12:49:32 -05:00
Artturin
c6568adb00 treewide: makeWrapper buildInputs to nativeBuildInputs
most found with https://github.com/siraben/nix-lint
2022-08-16 13:14:19 +03:00
Ryan Mulligan
3d332125a4 discourse.plugins.discourse-bbcode-color: init 2022-08-12 13:04:12 -07:00
talyz
a3cc1609cd
discourse: Update plugins 2022-08-12 12:21:11 +02:00
talyz
f34bc06abc
discourse: Filter out :require_name option when creating the Gemfile
:require_name is internal to Discourse and Bundler throws an error
when it's passed through to the Gemfile.
2022-08-12 12:21:05 +02:00
talyz
7feea0d062
discourse: 2.9.0.beta4 -> 2.9.0.beta9
Co-authored-by: Tobias Stenzel <ts@flyingcircus.io>
2022-08-12 12:20:17 +02:00
github-actions[bot]
c58a108aaa
Merge master into staging-next 2022-04-16 06:01:08 +00:00
Ryan Mulligan
8c33504431 discourse: 2.9.0.beta3 -> 2.9.0.beta4 2022-04-14 13:23:50 -07:00
Vladimír Čunát
d5d94127fd
Merge branch 'staging-next' into staging
Minor conflicts; I hope I didn't mess up:
	pkgs/development/tools/misc/binutils/default.nix
	pkgs/games/openjk/default.nix
2022-04-14 09:53:21 +02:00
talyz
d46598d4f4
discourse-mail-receiver: Add update_mail_receiver to update.py 2022-03-25 12:06:14 +01:00
talyz
9b891e6f64
discourse.plugins: Update all plugins to their latest versions 2022-03-25 12:05:55 +01:00
talyz
04afc69a29
discourse: 2.9.0.beta1 -> 2.9.0.beta3 2022-03-25 12:05:48 +01:00
Naïm Favier
9160044f5f
treewide/makeWrapper: replace --run cd with --chdir
Lay the groundwork for switching to binary wrappers by reducing uses
of `--run` (which is not supported by `makeBinaryWrapper`).
2022-03-19 09:46:31 +01:00
Ryan Mulligan
c0ddbde02f discourse: 2.8.0.beta11 -> 2.9.0.beta1 2022-01-27 16:42:23 -08:00
Ryan Mulligan
3d2cb0d6a2 discourse: 2.8.0.beta10 -> 2.8.0.beta11
https://meta.discourse.org/t/2-8-0-beta11-user-will-not-be-mentioned-warning-updated-emoji-and-more/214752

Small fix to a patch but otherwise I just ran the update scripts.
2022-01-13 15:08:41 -08:00
talyz
ae77e2fb78
discourse: Forward the used system and pkgs attributes to the tests
The system attribute is otherwise deduced from the system the
evaluation runs on, which could be incorrect if using remote
builders.
2021-12-23 10:34:27 +01:00
talyz
1138af5637
discourse: Add aarch64-linux to the list of platforms to be removed
...in the update script and remove it from the Gemfile.lock. Having
it there causes a failure with the error message:

Could not find libv8-node-16.10.0.0-aarch64-linux in any of the
sources (Bundler::GemNotFound)

And since we're not using the prebuilt binary packages anyway, we
don't need it there in the first place.
2021-12-23 10:24:18 +01:00
Ryan Mulligan
50832be998 discourse: 2.8.0.beta9 -> 2.8.0.beta10; update plugins 2021-12-21 15:40:12 -08:00
talyz
125bb7dac1
discourse: Don't patch the public path
Instead of patching the path to /public in Discourse's sources, make
the nginx configuration refer to the symlink in the discourse
package which points to the real path.

When there is a mismatch between the path nginx serves and the path
Discourse thinks it serves, we can run into issues like files not
being served - at least when sendfile requests from the ruby app are
processed by nginx. The issue I ran into most recently is that backup
downloads don't work.

Since Discourse refers to the public directory relative to the Rails
root in many places, it's much easier to just sync this path to the
nginx configuration than trying to patch all occurrences in the
sources. This should hopefully mean less potential for breakage in
future Discourse releases, too.
2021-12-06 14:21:39 +01:00
talyz
4fb343c87e
discourse: update.py: Improve version handling, use pinned plugins
Add a DiscourseVersion class which handles Discourse's version
numbering properly when sorting - beta versions are sorted lower than
their respective release versions. It can also return both its version
number and equivalent git tag, removing the need for `rev2version` and
manually adding `v` to the front.

Using DiscourseVersion instead of LooseVersion, we can list all
current version number tags from the `discourse` repo and sort them
correctly, giving us the latest one, regardless of type; i.e. we don't
have to filter for only release versions or beta versions anymore.

This also implements the plugin pinning algorithm laid out here:
https://meta.discourse.org/t/pinning-plugin-and-theme-versions-for-older-discourse-installs/156971
to make sure we don't upgrade plugins further than what's compatible
with our currently packaged Discourse version. While it likely won't
matter much most of the time if we continue packaging the beta
versions, it could be helpful if we decide to go back to packaging
release versions or if we run into issues with future upgrades. In
that case, the plugins could still be updated safely even though we're
not on the latest version of Discourse.
2021-12-02 11:55:07 +01:00
talyz
ab042d6452
discourse.plugins: Update all plugins to their latest versions
Also, add support for updating plugins which keep gem versions in
files at the root of the repo (discourse-prometheus) and replace the
`up-plugin.sh` script with a README file pointing to the plugin
packaging documentation.
2021-12-02 10:43:14 +01:00
talyz
e2415dbb8f
discourse: 2.7.9 -> 2.8.0.beta9
Update to the latest beta, since upstream advocates for it. See
https://github.com/NixOS/nixpkgs/issues/146308 for more info.
2021-12-02 10:31:00 +01:00
Ryan Mulligan
88120a1377 discourse/update.py: use nix-instantiate
The interface of `nix eval` is not stable across versions of nix that
are currently in the wild, so use the older nix-instantiate command
instead.
2021-11-16 15:59:32 -08:00
Kim Lindberger
b4ef544bcd
Merge pull request #140904 from dpausp/discourse-new-plugins
Discourse: add plugins: assign, chat-integration, docs, prometheus, saved-searches
2021-10-31 12:55:26 +01:00
TredwellGit
44ffcb8362 discourse: 2.7.8 -> 2.7.9
https://nvd.nist.gov/vuln/detail/CVE-2021-41163
2021-10-28 01:56:09 +00:00
Tobias Stenzel
34ba7d2fdc discourse.plugins.discourse-voting: Init 2021-10-26 23:24:10 +02:00
Tobias Stenzel
3251a4a7d2 discourse.plugins.discourse-saved-searches: Init 2021-10-26 23:24:10 +02:00
Tobias Stenzel
7584343790 discourse.plugins.discourse-prometheus: Init 2021-10-26 23:24:10 +02:00
Tobias Stenzel
9ede32d45c discourse.plugins.discourse-docs: Init 2021-10-26 23:24:09 +02:00
Tobias Stenzel
ecb1b736c7 discourse.plugins.discourse-chat-integration: Init 2021-10-26 23:24:09 +02:00
Tobias Stenzel
1ef543a549 discourse.plugins.discourse-assign: Init 2021-10-26 23:24:09 +02:00