{movim,nixos/movim}: fix database options (#388428)

This commit is contained in:
Austin Horstman
2025-03-10 10:27:59 -05:00
committed by GitHub
2 changed files with 10 additions and 6 deletions
+6 -2
View File
@@ -53,10 +53,14 @@ let
p = cfg.package.override (
{
inherit phpCfg;
withPgsql = cfg.database.type == "pgsql";
withMysql = cfg.database.type == "mysql";
inherit (cfg) minifyStaticFiles;
}
// lib.optionalAttrs (cfg.database.type == "postgresql") {
withPostgreSQL = true;
}
// lib.optionalAttrs (cfg.database.type == "mysql") {
withMySQL = true;
}
// lib.optionalAttrs (lib.isAttrs cfg.minifyStaticFiles) (
with cfg.minifyStaticFiles;
{
+4 -4
View File
@@ -5,8 +5,8 @@
dash,
php,
phpCfg ? null,
withPgsql ? true, # “strongly recommended” according to docs
withMysql ? false,
withPostgreSQL ? true, # “strongly recommended” according to docs
withMySQL ? false,
minifyStaticFiles ? false, # default files are often not minified
esbuild,
lightningcss,
@@ -67,14 +67,14 @@ php.buildComposerProject2 (finalAttrs: {
pdo
simplexml
])
++ lib.optionals withPgsql (
++ lib.optionals withPostgreSQL (
with all;
[
pdo_pgsql
pgsql
]
)
++ lib.optionals withMysql (
++ lib.optionals withMySQL (
with all;
[
mysqli