| 10 Mar 2024 |
@patka_123:matrix.org | Alright, that does make sense. Thanks for the explanation! I'm going to stay on the safe side, and leave this topic alone for now. I don't feel confident enough yet about making the decision that a package should go to by-name then | 19:13:00 |
Pol | New PHP PR for improving the PHP builder warning message in case of Composer validation failure: https://github.com/NixOS/nixpkgs/pull/294831 | 21:29:10 |
| 12 Mar 2024 |
Pol | tgerbet: Are you ok with this? ^^ Eval is red, but that's because of the warning. How to deal with that in nixpkgs? | 09:36:31 |
| 13 Mar 2024 |
@patka_123:matrix.org | There is now a PHP label, so lets have them added automatically for us :) | 16:35:23 |
@patka_123:matrix.org | There is now a PHP label, so lets have them added automatically for us :)
https://github.com/NixOS/nixpkgs/pull/295643 | 16:35:33 |
| 14 Mar 2024 |
Pol | Review required here: https://github.com/NixOS/nixpkgs/pull/295836 | 13:32:28 |
| NixOS Moderation Botchanged room power levels. | 18:44:59 |
Pol | Here's a new PR that fixes an issue for the upcoming 8.4 version: https://github.com/NixOS/nixpkgs/pull/295968 | 20:28:59 |
Pol | It doesn't have an impact on older versions. | 20:29:14 |
Pol | * It doesn't have an impact on older versions. (I tested) | 20:29:20 |
tgerbet | In reply to @drupol:matrix.org tgerbet: Are you ok with this? ^^ Eval is red, but that's because of the warning. How to deal with that in nixpkgs? I do not think lib.warnIf can be used for that. It will always be flagged by the nix-instantiate call done by OfBorg and it is not really an issue within nixpkgs code itself but from upstreams. | 20:44:52 |
Pol | In reply to @tgerbet:matrix.org I do not think lib.warnIf can be used for that. It will always be flagged by the nix-instantiate call done by OfBorg and it is not really an issue within nixpkgs code itself but from upstreams. Ok I will rework this. | 20:45:17 |
Pol | PR updated! https://github.com/NixOS/nixpkgs/pull/294831 | 20:52:29 |
Pol | Thanks for the review! | 21:30:47 |
Pol | Thanks :) | 21:58:18 |
Pol | Et re merci | 22:35:24 |
| @grahamc:nixos.org joined the room. | 22:37:05 |
| 17 Mar 2024 |
hexa | engelsystem-migrate-start[1012]: Exception: Code: 0, Message: Call to undefined function Symfony\Polyfill\Mbstring\iconv_substr(), File: vendor/symfony/polyfill-mbstring/Mbstring.php:660, Previous: None, Trace: [{"file":"\/nix\/store\/03xgnc2nzf5z0112j4b1kmm5qpyrapqf-engelsystem-3.5.0\/share\/engelsystem\/vendor\/symfony\/polyf]
| 02:23:58 |
hexa | currently looking at https://github.com/NixOS/nixpkgs/pull/280063 | 02:24:13 |
hexa | tried providing the phpfpm pool with iconv and mbstring extensions | 02:27:26 |
hexa | but no luck | 02:27:31 |
hexa | then found out that php82 ships with all kinds of extensions by default already | 02:35:57 |
hexa | still no dice | 02:36:05 |
@patka_123:matrix.org | Ill have a lool later today | 07:51:34 |
@patka_123:matrix.org | * | 08:00:12 |
@patka_123:matrix.org | hexa what did you do to get that exception? Just building it? | 09:57:36 |
hexa | Build the attached test | 10:15:25 |
hexa | * @patka: Build the attached test | 10:15:48 |
tgerbet | Something like this should do the trick
diff --git a/nixos/modules/services/web-apps/engelsystem.nix b/nixos/modules/services/web-apps/engelsystem.nix
index 669620debce5..7fb912415643 100644
--- a/nixos/modules/services/web-apps/engelsystem.nix
+++ b/nixos/modules/services/web-apps/engelsystem.nix
@@ -3,6 +3,8 @@
let
inherit (lib) mkDefault mkEnableOption mkIf mkOption types mkPackageOption;
cfg = config.services.engelsystem;
+ phpExt = pkgs.php.withExtensions
+ ({ enabled, all }: with all; [ filter mysqlnd mysqli pdo pdo_mysql mbstring ] ++ enabled);
in {
options = {
services.engelsystem = {
@@ -99,7 +101,7 @@ in {
'';
services.phpfpm.pools.engelsystem = {
- phpPackage = pkgs.php81;
+ phpPackage = phpExt;
user = "engelsystem";
settings = {
"listen.owner" = config.services.nginx.user;
diff --git a/pkgs/servers/web-apps/engelsystem/default.nix b/pkgs/servers/web-apps/engelsystem/default.nix
index 9b9cf0ff3bfe..8274f3e88418 100644
--- a/pkgs/servers/web-apps/engelsystem/default.nix
+++ b/pkgs/servers/web-apps/engelsystem/default.nix
@@ -2,15 +2,15 @@
let
phpExt = php.withExtensions
- ({ enabled, all }: with all; [ filter mysqlnd mysqli pdo pdo_mysql ]);
+ ({ enabled, all }: with all; [ filter mysqlnd mysqli pdo pdo_mysql mbstring ] ++ enabled);
in
stdenv.mkDerivation rec {
pname = "engelsystem";
- version = "3.4.1";
+ version = "3.5.0";
src = fetchzip {
url = "https://github.com/engelsystem/engelsystem/releases/download/v${version}/engelsystem-v${version}.zip";
- hash = "sha256-5KniP1nrLfmWHruXnUJmlvgL95U+EsDmCs4tg/YLWtw=";
+ hash = "sha256-RbzAHBZN02u14WaLtq5EOh4XwIdHKvzX7NhDBhn/CaU=";
};
buildInputs = [ phpExt ];
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 1f6edde48394..acd7f66f5b61 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -25999,7 +25999,7 @@ with pkgs;
dspam = callPackage ../servers/mail/dspam { };
- engelsystem = callPackage ../servers/web-apps/engelsystem { php = php81; };
+ engelsystem = callPackage ../servers/web-apps/engelsystem { };
envoy = callPackage ../servers/http/envoy {
go = go_1_20;
| 11:01:03 |
@patka_123:matrix.org | That is exactly what I'm trying ^^ So at least I'm looking in the correct places. But I've never ran any tests and was running into unrelated things. I think I am getting there | 11:04:19 |