Skip to content

Commit fb297f0

Browse files
authored
movim: 0.30 → 0.30.1; {movim,nixos.movim}: mysql → mariadb (#401596)
2 parents 6a0960a + 9e32e76 commit fb297f0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

nixos/modules/services/web-apps/movim.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let
5858
// lib.optionalAttrs (cfg.database.type == "postgresql") {
5959
withPostgreSQL = true;
6060
}
61-
// lib.optionalAttrs (cfg.database.type == "mysql") {
61+
// lib.optionalAttrs (cfg.database.type == "mariadb") {
6262
withMySQL = true;
6363
}
6464
);
@@ -168,7 +168,7 @@ let
168168
dbService =
169169
{
170170
"postgresql" = "postgresql.service";
171-
"mysql" = "mysql.service";
171+
"mariadb" = "mysql.service";
172172
}
173173
.${cfg.database.type};
174174

@@ -475,10 +475,10 @@ in
475475
database = {
476476
type = mkOption {
477477
type = types.enum [
478-
"mysql"
478+
"mariadb"
479479
"postgresql"
480480
];
481-
example = "mysql";
481+
example = "mariadb";
482482
default = "postgresql";
483483
description = "Database engine to use.";
484484
};
@@ -621,7 +621,7 @@ in
621621
DB_DRIVER =
622622
{
623623
"postgresql" = "pgsql";
624-
"mysql" = "mysql";
624+
"mariadb" = "mysql";
625625
}
626626
.${cfg.database.type};
627627
DB_HOST = "localhost";
@@ -791,7 +791,7 @@ in
791791
}
792792
);
793793

794-
mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mysql") {
794+
mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mariadb") {
795795
enable = mkDefault true;
796796
package = mkDefault pkgs.mariadb;
797797
ensureDatabases = [ cfg.database.name ];

pkgs/by-name/mo/movim/package.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
php,
77
phpCfg ? null,
88
withPostgreSQL ? true, # “strongly recommended” according to docs
9-
withMySQL ? false,
9+
withMariaDB ? false,
1010
minifyStaticFiles ? false, # default files are often not minified
1111
esbuild,
1212
lightningcss,
@@ -44,13 +44,13 @@ let
4444
in
4545
php.buildComposerProject2 (finalAttrs: {
4646
pname = "movim";
47-
version = "0.30";
47+
version = "0.30.1";
4848

4949
src = fetchFromGitHub {
5050
owner = "movim";
5151
repo = "movim";
5252
tag = "v${finalAttrs.version}";
53-
hash = "sha256-rW751UhDBhakOrAT4BOiRDPpGldf1EwNZY8iavXlpLk=";
53+
hash = "sha256-MjP1rLyWJWrUAHrOKAwGN3A0wIq4iPaXlaUbtPs3F6U=";
5454
};
5555

5656
php = php.buildEnv (
@@ -71,7 +71,7 @@ php.buildComposerProject2 (finalAttrs: {
7171
all.pdo_pgsql
7272
all.pgsql
7373
]
74-
++ lib.optionals withMySQL [
74+
++ lib.optionals withMariaDB [
7575
all.mysqli
7676
all.mysqlnd
7777
all.pdo_mysql
@@ -88,7 +88,7 @@ php.buildComposerProject2 (finalAttrs: {
8888
++ lib.optional minify.style.enable lightningcss
8989
++ lib.optional minify.svg.enable scour;
9090

91-
vendorHash = "sha256-NuX6CX2QXea8BcL0nzFOdxIBs36igD8lvixna+vsviM=";
91+
vendorHash = "sha256-7jb4/UgnMcXtLCihwk4rr0HLw99FgiYeYJVATGxM/D4=";
9292

9393
postPatch = ''
9494
# Our modules are already wrapped, removes missing *.so warnings;

0 commit comments

Comments
 (0)