mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/meilisearch: use meilisearch_1_11 for stateVersion below 25.05
This commit is contained in:
parent
9b8ced6e69
commit
aac2e41ce0
1 changed files with 16 additions and 0 deletions
|
@ -129,6 +129,22 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
warnings = lib.optional (lib.versionOlder cfg.package.version "1.12") ''
|
||||||
|
Meilisearch 1.11 will be removed in NixOS 25.11. As it was the last
|
||||||
|
version not to support dumpless upgrades, you will have to manually
|
||||||
|
migrate your data before that. Instructions can be found at
|
||||||
|
https://www.meilisearch.com/docs/learn/update_and_migration/updating#using-a-dump
|
||||||
|
and afterwards, you can set `services.meilisearch.package = pkgs.meilisearch;`
|
||||||
|
to use the latest version.
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.meilisearch.package = lib.mkDefault (
|
||||||
|
if lib.versionAtLeast config.system.stateVersion "25.05" then
|
||||||
|
pkgs.meilisearch
|
||||||
|
else
|
||||||
|
pkgs.meilisearch_1_11
|
||||||
|
);
|
||||||
|
|
||||||
# used to restore dumps
|
# used to restore dumps
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue