Skip to content

Commit

Permalink
Merge pull request #250735 from TheNeikos/fix/discourse
Browse files Browse the repository at this point in the history
discourse: update 3.1.0.beta4 -> 3.1.0
  • Loading branch information
drupol authored Sep 14, 2023
2 parents 407c4ac + bbdccb8 commit d30fde0
Show file tree
Hide file tree
Showing 34 changed files with 433 additions and 440 deletions.
2 changes: 1 addition & 1 deletion nixos/tests/discourse.nix
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ import ./make-test-python.nix (
request = builtins.toJSON {
title = "Private message";
raw = "This is a test message.";
target_usernames = admin.username;
target_recipients = admin.username;
archetype = "private_message";
};
in ''
Expand Down
29 changes: 7 additions & 22 deletions pkgs/servers/web-apps/discourse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
, yarn
, fixup_yarn_lock
, nodePackages
, nodejs_16
, dart-sass-embedded
, nodejs_18
, jq
, moreutils
, terser
Expand All @@ -47,13 +46,13 @@
}@args:

let
version = "3.1.0.beta4";
version = "3.1.0";

src = fetchFromGitHub {
owner = "discourse";
repo = "discourse";
rev = "v${version}";
sha256 = "sha256-22GXFYPjPYL20amR4xFB4L/dCp32H4Z3uf0GLGEghUE=";
sha256 = "sha256-Iv7VSnK8nZDpmIwIRPedSWlftABKuMOQ4MXDGpjuWrY=";
};

ruby = ruby_3_2;
Expand Down Expand Up @@ -163,9 +162,9 @@ let
cd ../..
mkdir -p vendor/v8/${stdenv.hostPlatform.system}/libv8/obj/
ln -s "${nodejs_16.libv8}/lib/libv8.a" vendor/v8/${stdenv.hostPlatform.system}/libv8/obj/libv8_monolith.a
ln -s "${nodejs_18.libv8}/lib/libv8.a" vendor/v8/${stdenv.hostPlatform.system}/libv8/obj/libv8_monolith.a
ln -s ${nodejs_16.libv8}/include vendor/v8/include
ln -s ${nodejs_18.libv8}/include vendor/v8/include
mkdir -p ext/libv8-node
echo '--- !ruby/object:Libv8::Node::Location::Vendor {}' >ext/libv8-node/.location.yml
Expand All @@ -190,20 +189,6 @@ let
cp $(readlink -f ${libpsl}/lib/libpsl.so) vendor/libpsl.x86_64.so
'';
};
sass-embedded = gems.sass-embedded // {
dontBuild = false;
# `sass-embedded` depends on `dart-sass-embedded` and tries to
# fetch that as `.tar.gz` from GitHub releases. That `.tar.gz`
# can also be specified via `SASS_EMBEDDED`. But instead of
# compressing our `dart-sass-embedded` just to decompress it
# again, we simply patch the Rakefile to symlink that path.
patches = [
./rubyEnv/sass-embedded-static.patch
];
postPatch = ''
export SASS_EMBEDDED=${dart-sass-embedded}/bin
'';
};
};

groups = [
Expand All @@ -217,7 +202,7 @@ let

yarnOfflineCache = fetchYarnDeps {
yarnLock = src + "/app/assets/javascripts/yarn.lock";
sha256 = "0a20kns4irdpzzx2dvdjbi0m3s754gp737q08z5nlcnffxqvykrk";
sha256 = "0sclrv3303dgg3r08dwhd1yvi3pvlnvnikn300vjsh6c71fnzhnj";
};

nativeBuildInputs = runtimeDeps ++ [
Expand All @@ -227,7 +212,7 @@ let
terser
nodePackages.patch-package
yarn
nodejs_16
nodejs_18
jq
moreutils
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-assign";
rev = "a655a009fade4671e4a2d38f0a0f7ce89d201d80";
sha256 = "sha256-HCwId3/7NRuToLFyJrOVaAiSxysB7XNZp9BUndSJzlY=";
rev = "0cbf10b8055370445bd36536e51986bf48bdc57e";
sha256 = "sha256-7rJ2zQo1nCHwtVuLJUmdj66Ky2bi4Cpo+22H3DbO1uo=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-docs";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-bbcode-color";
rev = "f9ebbf016c8c5c763473ff36cc30fdcdf8fcf480";
sha256 = "sha256-7iCKhMdVlFdHMXxU8mQMU1vFiAbr1qKvG29VdAki+14=";
rev = "35aab2e9b92f8b01633d374ea999e7fd59d020d7";
sha256 = "sha256-DHckx921EeQysm1UPloCrt43BJetTnZKnTbJGk15NMs=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-bbcode-color";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.4.3)
activesupport (7.0.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
concurrent-ruby (1.2.2)
i18n (1.13.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
minitest (5.18.0)
minitest (5.20.0)
rrule (0.4.4)
activesupport (>= 2.3)
tzinfo (2.0.6)
Expand All @@ -22,4 +22,4 @@ DEPENDENCIES
rrule (= 0.4.4)

BUNDLED WITH
2.4.10
2.4.13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-calendar";
rev = "d85e8e288d69788e0c3202bb3dab9c3450a98914";
sha256 = "sha256-mSn2gGidH4iSZ0fhf3UPh9pwMQurK0YGW2OAtdEWFBQ=";
rev = "afc2ee684de41601d6cecc46713d139760f176a6";
sha256 = "sha256-rTQWO+E/Jg4zjZDYDvBrDQsox5q4dHkdQjwnJxgv3dI=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-calendar";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "15m0b1im6i401ab51vzr7f8nk8kys1qa0snnl741y3sir3xd07jp";
sha256 = "188kbwkn1lbhz40ala8ykp20jzqphgc68g3d8flin8cqa2xid0s5";
type = "gem";
};
version = "7.0.4.3";
version = "7.0.8";
};
concurrent-ruby = {
groups = ["default"];
Expand All @@ -26,20 +26,20 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1yk33slipi3i1kydzrrchbi7cgisaxym6pgwlzx7ir8vjk6wl90x";
sha256 = "0qaamqsh5f3szhcakkak8ikxlzxqnv49n2p7504hcz2l0f4nj0wx";
type = "gem";
};
version = "1.13.0";
version = "1.14.1";
};
minitest = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0ic7i5z88zcaqnpzprf7saimq2f6sad57g5mkkqsrqrcd6h3mx06";
sha256 = "0bkmfi9mb49m0fkdhl2g38i3xxa02d411gg0m8x0gvbwfmmg5ym3";
type = "gem";
};
version = "5.18.0";
version = "5.20.0";
};
rrule = {
dependencies = ["activesupport"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-canned-replies";
rev = "5a2d9a11ef3f07fc781acd83770bafc14eca2c1b";
sha256 = "sha256-R6CmL1hqqybc/I3oAzr3xZ4WThPWQirMjlXkF82xmIk=";
rev = "732598b6cdc86c74622bb15bfeaebb05611bbc25";
sha256 = "sha256-t0emNsPT8o0ralUedt33ufH0VLl4/12lVBBCnzfdRxE=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-canned-replies";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-chat-integration";
rev = "9647c7afc0df42b8e2b5ae585afaf51f107fa195";
sha256 = "sha256-lP404OJvEEQVKIQTBMca7zb/YxQ6HXcPG1jMKpEB3iA=";
rev = "70fea6b66b68868aa4c00b45a169436deaa142a8";
sha256 = "sha256-K9MmP1F0B6Na2dTqgnsjMbTQFkF+nNKkI8aF3zPAodc=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-chat-integration";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-checklist";
rev = "4a7f3df360a8e4ff3bbebfed33ea545b1c72506e";
sha256 = "sha256-lu8Ry3sUsKnr1nMfR29hbhsfJXLaN5NPuz8iGfsfHTc=";
rev = "d94e58c3060ee7ca0fe76339215ed9456d5f4ea4";
sha256 = "sha256-zTMkU8NRqxLQ3/ghYTmEhRqbCgdYsYaImHdGu7WwuFk=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-checklist";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-data-explorer";
rev = "f99b3af7ed4a21474f35223e83013ee3e8ad7002";
sha256 = "sha256-3bBKBSc/+yF9ogNj3J6HXM3ynoAoUZeHhZOOhTfbxDw=";
rev = "e4f8d3924a18b303c2bb7da9472cf0c060060e4e";
sha256 = "sha256-K+GPszO3je6NmnhIRSqSEhylUK5oEByaS0bLfAGjvB4=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-data-explorer";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-docs";
rev = "0b4d2f3691048b6e0e257a1ac9ed01f66f662ba8";
sha256 = "sha256-HeIUCTbMNpuo6zeaDClsGrUOz4m0L+4UK7AwPsrKIHY=";
rev = "a4b203274b88c5277d0b5b936de0bc0e0016726c";
sha256 = "sha256-R+VP/gsb2Oa6lPVMhRoGZzOBx5C7kRSxqwYpWE10GHw=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-docs";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.4)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
faraday (2.7.4)
faraday (2.7.10)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
octokit (5.6.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
public_suffix (5.0.1)
public_suffix (5.0.3)
ruby2_keywords (0.0.5)
sawyer (0.9.2)
addressable (>= 2.3.5)
Expand All @@ -24,4 +24,4 @@ DEPENDENCIES
sawyer (= 0.9.2)

BUNDLED WITH
2.4.10
2.4.13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-github";
rev = "77e336a1b4ea08e2bb8a010d30146e4844afb3f3";
sha256 = "sha256-VHuf4ymT+W676RAuA3WPQl9QXLdQz4s8vP9EC8XAwW0=";
rev = "8aa068d56ef010cecaabd50657e7753f4bbecc1f";
sha256 = "sha256-WzljuGvv6pki3ROkvhXZWQaq5D9JkCbWjdlkdRI8lHE=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-github";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "15s8van7r2ad3dq6i03l3z4hqnvxcq75a3h72kxvf9an53sqma20";
sha256 = "05r1fwy487klqkya7vzia8hnklcxy4vr92m9dmni3prfwk6zpw33";
type = "gem";
};
version = "2.8.4";
version = "2.8.5";
};
faraday = {
dependencies = ["faraday-net_http" "ruby2_keywords"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1f20vjx0ywx0zdb4dfx4cpa7kd51z6vg7dw5hs35laa45dy9g9pj";
sha256 = "187clqhp9mv5mnqmjlfdp57svhsg1bggz84ak8v333j9skrnrgh9";
type = "gem";
};
version = "2.7.4";
version = "2.7.10";
};
faraday-net_http = {
groups = ["default"];
Expand Down Expand Up @@ -47,10 +47,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0hz0bx2qs2pwb0bwazzsah03ilpf3aai8b7lk7s35jsfzwbkjq35";
sha256 = "0n9j7mczl15r3kwqrah09cxj8hxdfawiqxa60kga2bmxl9flfz9k";
type = "gem";
};
version = "5.0.1";
version = "5.0.3";
};
ruby2_keywords = {
groups = ["default"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-math";
rev = "69494ca5a4d708e16e35f1daebeaa53e3edbca2c";
sha256 = "sha256-C0iVUwj+Lbe6TGfkbu6WxdCeMWVjBaejUh6fXVTqq08=";
rev = "529ad1fe6da924da378a60bec48c35657bb01a68";
sha256 = "sha256-zhtAy0tTVMzQfPilTwfyyzxgCJD4xazOITBuliFR5Gg=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-math";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ DEPENDENCIES
unix-crypt (= 1.3.0)

BUNDLED WITH
2.4.6
2.4.13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "communiteq";
repo = "discourse-migratepassword";
rev = "f78774242eb9bf49a72d2800a39a24eeaa3b401a";
sha256 = "sha256-QJO+ei9/l7ye+kWE9VmiIuNCiOH66kd3vds49qlIztY=";
rev = "a95ae6bca4126172186fafcd2315f51a4504c23b";
sha256 = "sha256-lr2xHz+8q4XnHc/7KLX0Z2m0KMffLgGYk36zxGG9X5o=";
};
meta = with lib; {
homepage = "https://github.com/communiteq/discourse-migratepassword";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ mkDiscoursePlugin {
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-openid-connect";
rev = "a16d5edd386f4099064753a4eed72ecb9c1bb1a8";
sha256 = "sha256-9Fuu/UFmU4Gpkm5cRKOgDK0bt7nD545X18wtue+IrN8=";
rev = "b1df541ad29f6f6098a1008b83393b2d400986ed";
sha256 = "sha256-afRd/9M0nQGkS14Q8BJhcJwMCkOku3Fr0uHxcRl44vQ=";
};
meta = with lib; {
homepage = "https://github.com/discourse/discourse-openid-connect";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ source "https://rubygems.org"

# gem "rails"
gem "webrick", "1.7.0"
gem "prometheus_exporter", File.read(File.expand_path("../prometheus_exporter_version", __FILE__)).strip
gem "prometheus_exporter", "2.0.6"
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ DEPENDENCIES
webrick (= 1.7.0)

BUNDLED WITH
2.4.10
2.4.13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
src = fetchFromGitHub {
owner = "discourse";
repo = "discourse-prometheus";
rev = "802cb5aa89838ecb3078dbe21b70d87b1675d89e";
sha256 = "sha256-tgujK/k/7l/9dAFna5sfUpgP0PVfjk+aGRbqZ70lmRw=";
rev = "8a7a46a80cc65aa0839bc5e3c3b6f8ef6544089f";
sha256 = "sha256-TL+pbP26LvRMKdy8CAuBEK+LZfAs8HfggMeUDaBu9hc=";
};

patches = [
Expand Down
Loading

0 comments on commit d30fde0

Please sign in to comment.