mongodb: mongodb-5_0 -> mongodb-7_0

This commit is contained in:
Emily 2024-10-01 01:27:51 +01:00
parent b0395df085
commit 086676017e
5 changed files with 11 additions and 4 deletions

View File

@ -173,6 +173,9 @@
- `transmission-gtk`: `~/.config/transmission` - `transmission-gtk`: `~/.config/transmission`
- `transmission-daemon` using NixOS module: `${config.services.transmission.home}/.config/transmission-daemon` (defaults to `/var/lib/transmission/.config/transmission-daemon`) - `transmission-daemon` using NixOS module: `${config.services.transmission.home}/.config/transmission-daemon` (defaults to `/var/lib/transmission/.config/transmission-daemon`)
- The default `mongodb` version has been updated from 5.0 to 7.0.
For more information, see the compatibility changes for MongoDB [6.0](https://www.mongodb.com/docs/manual/release-notes/6.0-compatibility/) and [7.0](https://www.mongodb.com/docs/manual/release-notes/7.0-compatibility/).
- `unifi` has been updated to UniFi 8. - `unifi` has been updated to UniFi 8.
`unifi7` was removed as it is vulnerable to CVE-2024-42025 and required a version of MongoDB that has reached end of life. `unifi7` was removed as it is vulnerable to CVE-2024-42025 and required a version of MongoDB that has reached end of life.

View File

@ -34,7 +34,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
node = {...}: { node = {...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# remember to update mongodb.passthru.tests if you change this # remember to update mongodb.passthru.tests if you change this
mongodb-5_0 mongodb-7_0
]; ];
}; };
}; };
@ -42,7 +42,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
testScript = '' testScript = ''
node.start() node.start()
'' ''
+ runMongoDBTest pkgs.mongodb-5_0 + runMongoDBTest pkgs.mongodb-7_0
+ '' + ''
node.shutdown() node.shutdown()
''; '';

View File

@ -25,5 +25,5 @@ buildMongoDB {
# Fix building with python 3.12 since the imp module was removed # Fix building with python 3.12 since the imp module was removed
./mongodb-python312.patch ./mongodb-python312.patch
]; ];
# passthru.tests = { inherit (nixosTests) mongodb; }; # currently tests mongodb-5_0 # passthru.tests = { inherit (nixosTests) mongodb; }; # currently tests mongodb-7_0
} }

View File

@ -7,6 +7,7 @@
CoreFoundation, CoreFoundation,
cctools, cctools,
avxSupport ? stdenv.hostPlatform.avxSupport, avxSupport ? stdenv.hostPlatform.avxSupport,
nixosTests,
}: }:
let let
@ -34,4 +35,7 @@ buildMongoDB {
# Fix building with python 3.12 since the imp module was removed # Fix building with python 3.12 since the imp module was removed
./mongodb-python312.patch ./mongodb-python312.patch
]; ];
passthru.tests = {
inherit (nixosTests) mongodb;
};
} }

View File

@ -24974,7 +24974,7 @@ with pkgs;
mariadb = mariadb_1011; mariadb = mariadb_1011;
mariadb-embedded = mariadb.override { withEmbedded = true; }; mariadb-embedded = mariadb.override { withEmbedded = true; };
mongodb = hiPrio mongodb-6_0; mongodb = hiPrio mongodb-7_0;
mongodb-5_0 = callPackage ../servers/nosql/mongodb/5.0.nix { mongodb-5_0 = callPackage ../servers/nosql/mongodb/5.0.nix {
sasl = cyrus_sasl; sasl = cyrus_sasl;