Merge pull request #83258 from mmilata/sympa-6.2.54

nixos/sympa: fix outgoing emails, update package version

authored by

Silvan Mosberger and committed by
GitHub
c06bcdda 44c20fb8

+13 -11
+5 -7
nixos/modules/services/mail/sympa.nix
··· 25 25 StateDirectory = "sympa"; 26 26 ProtectHome = true; 27 27 ProtectSystem = "full"; 28 - ProtectKernelTunables = true; 29 - ProtectKernelModules = true; 30 28 ProtectControlGroups = true; 31 29 }; 32 30 ··· 415 413 # force-copy static_content so it's up to date with package 416 414 # set permissions for wwsympa which needs write access (...) 417 415 "R ${dataDir}/static_content - - - - -" 418 - "C ${dataDir}/static_content 0711 ${user} ${group} - ${pkg}/static_content" 416 + "C ${dataDir}/static_content 0711 ${user} ${group} - ${pkg}/var/lib/sympa/static_content" 419 417 "e ${dataDir}/static_content/* 0711 ${user} ${group} - -" 420 418 421 419 "d /run/sympa 0755 ${user} ${group} - -" ··· 497 495 -F ${toString cfg.web.fcgiProcs} \ 498 496 -P /run/sympa/wwsympa.pid \ 499 497 -s /run/sympa/wwsympa.socket \ 500 - -- ${pkg}/bin/wwsympa.fcgi 498 + -- ${pkg}/lib/sympa/cgi/wwsympa.fcgi 501 499 ''; 502 500 503 501 } // commonServiceConfig; ··· 518 516 fastcgi_split_path_info ^(${loc})(.*)$; 519 517 520 518 fastcgi_param PATH_INFO $fastcgi_path_info; 521 - fastcgi_param SCRIPT_FILENAME ${pkg}/bin/wwsympa.fcgi; 519 + fastcgi_param SCRIPT_FILENAME ${pkg}/lib/sympa/cgi/wwsympa.fcgi; 522 520 ''; 523 521 }) // { 524 522 "/static-sympa/".alias = "${dataDir}/static_content/"; ··· 550 548 args = [ 551 549 "flags=hqRu" 552 550 "user=${user}" 553 - "argv=${pkg}/bin/queue" 551 + "argv=${pkg}/libexec/queue" 554 552 "\${nexthop}" 555 553 ]; 556 554 }; ··· 562 560 args = [ 563 561 "flags=hqRu" 564 562 "user=${user}" 565 - "argv=${pkg}/bin/bouncequeue" 563 + "argv=${pkg}/libexec/bouncequeue" 566 564 "\${nexthop}" 567 565 ]; 568 566 };
+8 -4
pkgs/servers/mail/sympa/default.nix
··· 1 - { stdenv, perl, fetchFromGitHub, autoreconfHook 2 - }: 1 + { stdenv, perl, fetchFromGitHub, autoreconfHook, nixosTests }: 3 2 4 3 let 5 4 dataDir = "/var/lib/sympa"; ··· 64 63 in 65 64 stdenv.mkDerivation rec { 66 65 pname = "sympa"; 67 - version = "6.2.52"; 66 + version = "6.2.54"; 68 67 69 68 src = fetchFromGitHub { 70 69 owner = "sympa-community"; 71 70 repo = pname; 72 71 rev = version; 73 - sha256 = "071kx6ryifs2f6fhfky9g297frzp5584kn444af1vb2imzydsbnh"; 72 + sha256 = "07wfvr8rrg7pwkl2zglrdri7n42rl9gwrjbaffb8m37wq67s7fca"; 74 73 }; 75 74 76 75 configureFlags = [ 76 + "--enable-fhs" 77 77 "--without-initdir" 78 78 "--without-unitsdir" 79 79 "--without-smrshdir" ··· 105 105 postInstall = '' 106 106 rm -rf "$TMP/bin" 107 107 ''; 108 + 109 + passthru.tests = { 110 + inherit (nixosTests) sympa; 111 + }; 108 112 109 113 meta = with stdenv.lib; { 110 114 description = "Open source mailing list manager";