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