discourse: 3.4.4 -> 3.4.6 (#430928)

authored by

Martin Weinelt and committed by
GitHub
8eb7a941 66023e4d

+22 -17
+2 -2
nixos/modules/services/web-apps/discourse.nix
··· 733 after = [ 734 "redis-discourse.service" 735 "postgresql.target" 736 - "discourse-postgresql.target" 737 ]; 738 bindsTo = [ 739 "redis-discourse.service" 740 ] 741 ++ lib.optionals (cfg.database.host == null) [ 742 "postgresql.target" 743 - "discourse-postgresql.target" 744 ]; 745 path = cfg.package.runtimeDeps ++ [ 746 postgresqlPackage
··· 733 after = [ 734 "redis-discourse.service" 735 "postgresql.target" 736 + "discourse-postgresql.service" 737 ]; 738 bindsTo = [ 739 "redis-discourse.service" 740 ] 741 ++ lib.optionals (cfg.database.host == null) [ 742 "postgresql.target" 743 + "discourse-postgresql.service" 744 ]; 745 path = cfg.package.runtimeDeps ++ [ 746 postgresqlPackage
+8 -1
nixos/tests/all-tests.nix
··· 422 dex-oidc = runTest ./dex-oidc.nix; 423 dhparams = runTest ./dhparams.nix; 424 disable-installer-tools = runTest ./disable-installer-tools.nix; 425 - discourse = runTest ./discourse.nix; 426 dnscrypt-proxy2 = runTestOn [ "x86_64-linux" ] ./dnscrypt-proxy2.nix; 427 dnsdist = import ./dnsdist.nix { inherit pkgs runTest; }; 428 doas = runTest ./doas.nix;
··· 422 dex-oidc = runTest ./dex-oidc.nix; 423 dhparams = runTest ./dhparams.nix; 424 disable-installer-tools = runTest ./disable-installer-tools.nix; 425 + discourse = runTest { 426 + imports = [ ./discourse.nix ]; 427 + _module.args.package = pkgs.discourse; 428 + }; 429 + discourseAllPlugins = runTest { 430 + imports = [ ./discourse.nix ]; 431 + _module.args.package = pkgs.discourseAllPlugins; 432 + }; 433 dnscrypt-proxy2 = runTestOn [ "x86_64-linux" ] ./dnscrypt-proxy2.nix; 434 dnsdist = import ./dnsdist.nix { inherit pkgs runTest; }; 435 doas = runTest ./doas.nix;
+2 -4
nixos/tests/discourse.nix
··· 4 # 3. replying to that message via email. 5 6 { 7 package, 8 pkgs, 9 - lib, 10 ... 11 }: 12 let ··· 25 { 26 name = "discourse"; 27 meta.maintainers = with lib.maintainers; [ talyz ]; 28 - 29 - _module.args.package = lib.mkDefault pkgs.discourse; 30 31 nodes.discourse = 32 { nodes, ... }: ··· 62 63 services.discourse = { 64 enable = true; 65 - inherit admin; 66 hostname = discourseDomain; 67 sslCertificate = "${certs.${discourseDomain}.cert}"; 68 sslCertificateKey = "${certs.${discourseDomain}.key}";
··· 4 # 3. replying to that message via email. 5 6 { 7 + lib, 8 package, 9 pkgs, 10 ... 11 }: 12 let ··· 25 { 26 name = "discourse"; 27 meta.maintainers = with lib.maintainers; [ talyz ]; 28 29 nodes.discourse = 30 { nodes, ... }: ··· 60 61 services.discourse = { 62 enable = true; 63 + inherit admin package; 64 hostname = discourseDomain; 65 sslCertificate = "${certs.${discourseDomain}.cert}"; 66 sslCertificateKey = "${certs.${discourseDomain}.key}";
+9 -9
pkgs/servers/web-apps/discourse/default.nix
··· 8 fetchFromGitHub, 9 bundlerEnv, 10 callPackage, 11 12 ruby_3_3, 13 - replace, 14 gzip, 15 gnutar, 16 git, ··· 43 uglify-js, 44 45 plugins ? [ ], 46 - }@args: 47 48 let 49 - version = "3.4.4"; 50 51 src = fetchFromGitHub { 52 owner = "discourse"; 53 repo = "discourse"; 54 rev = "v${version}"; 55 - sha256 = "sha256-rA42fOhSJVrNPcFSB2+On7JVeZch8t2yNo+36UK+QcA="; 56 }; 57 58 ruby = ruby_3_3; ··· 433 enabledPlugins = plugins; 434 plugins = callPackage ./plugins/all-plugins.nix { inherit mkDiscoursePlugin; }; 435 ruby = rubyEnv.wrappedRuby; 436 - tests = import ../../../../nixos/tests/discourse.nix { 437 - inherit (stdenv) system; 438 - inherit pkgs; 439 - package = pkgs.discourse.override args; 440 }; 441 }; 442 - 443 meta = with lib; { 444 homepage = "https://www.discourse.org/"; 445 platforms = platforms.linux;
··· 8 fetchFromGitHub, 9 bundlerEnv, 10 callPackage, 11 + nixosTests, 12 13 ruby_3_3, 14 gzip, 15 gnutar, 16 git, ··· 43 uglify-js, 44 45 plugins ? [ ], 46 + }: 47 48 let 49 + version = "3.4.6"; 50 51 src = fetchFromGitHub { 52 owner = "discourse"; 53 repo = "discourse"; 54 rev = "v${version}"; 55 + sha256 = "sha256-HS13jNhSrPo7CHAk2zZEKSt54lBTw1PdMCIJUO0rjLc="; 56 }; 57 58 ruby = ruby_3_3; ··· 433 enabledPlugins = plugins; 434 plugins = callPackage ./plugins/all-plugins.nix { inherit mkDiscoursePlugin; }; 435 ruby = rubyEnv.wrappedRuby; 436 + tests = { 437 + inherit (nixosTests) 438 + discourse 439 + discourseAllPlugins 440 + ; 441 }; 442 }; 443 meta = with lib; { 444 homepage = "https://www.discourse.org/"; 445 platforms = platforms.linux;
+1 -1
pkgs/servers/web-apps/discourse/rubyEnv/Gemfile.lock
··· 745 zeitwerk 746 747 BUNDLED WITH 748 - 2.6.6
··· 745 zeitwerk 746 747 BUNDLED WITH 748 + 2.6.9