Unverified Commit c021204a authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

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

parents 928dd5c0 076fdda0
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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