diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index a22ae692e138..3579d67aa54b 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -42,10 +42,10 @@ in services.unifi.mongodbPackage = mkOption { type = types.package; - default = pkgs.mongodb-4_2; + default = pkgs.mongodb-4_4; defaultText = literalExpression "pkgs.mongodb"; description = lib.mdDoc '' - The mongodb package to use. Please note: unifi7 officially only supports mongodb up until 3.6 but works with 4.2. + The mongodb package to use. Please note: unifi7 officially only supports mongodb up until 3.6 but works with 4.4. ''; }; diff --git a/nixos/modules/services/video/unifi-video.nix b/nixos/modules/services/video/unifi-video.nix index 78dc19086312..cb438a08150f 100644 --- a/nixos/modules/services/video/unifi-video.nix +++ b/nixos/modules/services/video/unifi-video.nix @@ -123,7 +123,7 @@ in mongodbPackage = mkOption { type = types.package; - default = pkgs.mongodb-4_2; + default = pkgs.mongodb-4_4; defaultText = literalExpression "pkgs.mongodb"; description = lib.mdDoc '' The mongodb package to use. diff --git a/nixos/tests/mongodb.nix b/nixos/tests/mongodb.nix index c26dc3ac32d3..75b0c4c2ab2b 100644 --- a/nixos/tests/mongodb.nix +++ b/nixos/tests/mongodb.nix @@ -33,7 +33,6 @@ import ./make-test-python.nix ({ pkgs, ... }: nodes = { node = {...}: { environment.systemPackages = with pkgs; [ - mongodb-4_2 mongodb-4_4 mongodb-5_0 ]; @@ -43,7 +42,6 @@ import ./make-test-python.nix ({ pkgs, ... }: testScript = '' node.start() '' - + runMongoDBTest pkgs.mongodb-4_2 + runMongoDBTest pkgs.mongodb-4_4 + runMongoDBTest pkgs.mongodb-5_0 + '' diff --git a/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view-4-2.patch b/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view-4-2.patch deleted file mode 100644 index 3720dd9ba319..000000000000 --- a/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view-4-2.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/src/third_party/asio-master/asio/include/asio/detail/config.hpp -+++ b/src/third_party/asio-master/asio/include/asio/detail/config.hpp -@@ -831,20 +831,8 @@ - # endif // (__cplusplus >= 201402) - # endif // (_LIBCPP_VERSION < 7000) - # else // defined(ASIO_HAS_CLANG_LIBCXX) --# if (__cplusplus >= 201402) --# if __has_include() --# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1 --# endif // __has_include() --# endif // (__cplusplus >= 201402) - # endif // // defined(ASIO_HAS_CLANG_LIBCXX) - # endif // defined(__clang__) --# if defined(__GNUC__) --# if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4) --# if (__cplusplus >= 201402) --# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1 --# endif // (__cplusplus >= 201402) --# endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4) --# endif // defined(__GNUC__) - # endif // !defined(ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW) - #endif // !defined(ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW) \ No newline at end of file diff --git a/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view.patch b/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view.patch deleted file mode 100644 index eb5db1818fe0..000000000000 --- a/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/src/third_party/asio-master/asio/include/asio/detail/config.hpp b/src/third_party/asio-master/asio/include/asio/detail/config.hpp -index 7fe6a95a..ff4cc56b 100644 ---- a/src/third_party/asio-master/asio/include/asio/detail/config.hpp -+++ b/src/third_party/asio-master/asio/include/asio/detail/config.hpp -@@ -786,7 +786,6 @@ - # if (__cplusplus >= 201402) - # if __has_include() - # define ASIO_HAS_STD_STRING_VIEW 1 --# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1 - # endif // __has_include() - # endif // (__cplusplus >= 201402) - # endif // defined(__clang__) -@@ -794,7 +793,6 @@ - # if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4) - # if (__cplusplus >= 201402) - # define ASIO_HAS_STD_STRING_VIEW 1 --# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1 - # endif // (__cplusplus >= 201402) - # endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4) - # endif // defined(__GNUC__) diff --git a/pkgs/servers/nosql/mongodb/forget-build-dependencies-3-4.patch b/pkgs/servers/nosql/mongodb/forget-build-dependencies-3-4.patch deleted file mode 100644 index ca2c043deb2d..000000000000 --- a/pkgs/servers/nosql/mongodb/forget-build-dependencies-3-4.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/site_scons/mongo_scons_utils.py -+++ b/site_scons/mongo_scons_utils.py -@@ -84,14 +84,11 @@ - def default_buildinfo_environment_data(): - return ( - ('distmod', '$MONGO_DISTMOD', True, True,), - ('distarch', '$MONGO_DISTARCH', True, True,), - ('cc', '$CC_VERSION', True, False,), -- ('ccflags', '$CCFLAGS', True, False,), - ('cxx', '$CXX_VERSION', True, False,), -- ('cxxflags', '$CXXFLAGS', True, False,), -- ('linkflags', '$LINKFLAGS', True, False,), - ('target_arch', '$TARGET_ARCH', True, True,), - ('target_os', '$TARGET_OS', True, False,), - ) - - # If you want buildInfo and --version to be relatively empty, set diff --git a/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch b/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch deleted file mode 100644 index 6d65238f22ab..000000000000 --- a/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch +++ /dev/null @@ -1,36 +0,0 @@ -# MongoDB keeps track of its build parameters, which tricks nix into -# keeping dependencies to build inputs in the final output. -# We remove the build flags from buildInfo data. ---- a/site_scons/mongo/generators.py -+++ b/site_scons/mongo/generators.py -@@ -33,30 +33,12 @@ def default_buildinfo_environment_data(): - True, - False, - ), -- ( -- 'ccflags', -- '$CCFLAGS', -- True, -- False, -- ), - ( - 'cxx', - '$CXX_VERSION', - True, - False, - ), -- ( -- 'cxxflags', -- '$CXXFLAGS', -- True, -- False, -- ), -- ( -- 'linkflags', -- '$LINKFLAGS', -- True, -- False, -- ), - ( - 'target_arch', - '$TARGET_ARCH', \ No newline at end of file diff --git a/pkgs/servers/nosql/mongodb/forget-build-dependencies.patch b/pkgs/servers/nosql/mongodb/forget-build-dependencies.patch deleted file mode 100644 index 37b4c259f2ac..000000000000 --- a/pkgs/servers/nosql/mongodb/forget-build-dependencies.patch +++ /dev/null @@ -1,16 +0,0 @@ -# MongoDB keeps track of its build parameters, which tricks nix into -# keeping dependencies to build inputs in the final output. -# We remove the build flags from buildInfo data. ---- a/site_scons/mongo/generators.py -+++ b/site_scons/mongo/generators.py -@@ -18,10 +18,7 @@ def default_buildinfo_environment_data(): - ('distmod', '$MONGO_DISTMOD', True, True,), - ('distarch', '$MONGO_DISTARCH', True, True,), - ('cc', '$CC_VERSION', True, False,), -- ('ccflags', '$CCFLAGS', True, False,), - ('cxx', '$CXX_VERSION', True, False,), -- ('cxxflags', '$CXXFLAGS', True, False,), -- ('linkflags', '$LINKFLAGS', True, False,), - ('target_arch', '$TARGET_ARCH', True, True,), - ('target_os', '$TARGET_OS', True, False,), - ) diff --git a/pkgs/servers/nosql/mongodb/mozjs-45_fix-3-byte-opcode.patch b/pkgs/servers/nosql/mongodb/mozjs-45_fix-3-byte-opcode.patch deleted file mode 100644 index 8c60cdd1e688..000000000000 --- a/pkgs/servers/nosql/mongodb/mozjs-45_fix-3-byte-opcode.patch +++ /dev/null @@ -1,27 +0,0 @@ -# HG changeset patch -# User Dan Gohman -# Parent d9b405d82cffb07343a5f2fd941e029298c7f6c4 -# Bug 1390214 - IonMonkey: Don't test for a 3-byte opcode in a 2-byte opcode predicate. -# https://bug1390214.bmoattachments.org/attachment.cgi?id=8902972 - -diff --git a/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h b/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h ---- a/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h -+++ b/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h -@@ -310,17 +310,16 @@ enum ThreeByteOpcodeID { - - // Test whether the given opcode should be printed with its operands reversed. - inline bool IsXMMReversedOperands(TwoByteOpcodeID opcode) - { - switch (opcode) { - case OP2_MOVSD_WsdVsd: // also OP2_MOVPS_WpsVps - case OP2_MOVAPS_WsdVsd: - case OP2_MOVDQ_WdqVdq: -- case OP3_PEXTRD_EdVdqIb: - return true; - default: - break; - } - return false; - } - - enum ThreeByteEscape { diff --git a/pkgs/servers/nosql/mongodb/patches/mongodb-4.0-glibc-2.34.patch b/pkgs/servers/nosql/mongodb/patches/mongodb-4.0-glibc-2.34.patch deleted file mode 100644 index f5c4a5c35408..000000000000 --- a/pkgs/servers/nosql/mongodb/patches/mongodb-4.0-glibc-2.34.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- a/src/mongo/stdx/thread.h -+++ b/src/mongo/stdx/thread.h -@@ -103,10 +103,7 @@ private: - // . N Y : 4,344 | 13,048 | 7,352 - // . Y Y : 4,424 | 13,672 | 8,392 - // ( https://jira.mongodb.org/secure/attachment/233569/233569_stacktrace-writeup.txt ) -- static constexpr std::size_t kMongoMinSignalStackSize = std::size_t{64} << 10; -- -- static constexpr std::size_t kStackSize = -- std::max(kMongoMinSignalStackSize, std::size_t{MINSIGSTKSZ}); -+ static constexpr std::size_t kStackSize = std::size_t{64} << 10; - std::unique_ptr _stackStorage = std::make_unique(kStackSize); - - #else // !MONGO_HAS_SIGALTSTACK \ No newline at end of file diff --git a/pkgs/servers/nosql/mongodb/v4_2.nix b/pkgs/servers/nosql/mongodb/v4_2.nix deleted file mode 100644 index 9cf419545a05..000000000000 --- a/pkgs/servers/nosql/mongodb/v4_2.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ stdenv, callPackage, fetchpatch, lib, sasl, boost, Security, CoreFoundation, cctools }: - -let - buildMongoDB = callPackage ./mongodb.nix { - inherit sasl; - inherit boost; - inherit Security; - inherit CoreFoundation; - inherit cctools; - }; -in buildMongoDB { - version = "4.2.24"; - sha256 = "sha256-O6nR4wfmupuc/Vjm72Vt8WFmbGm9GHR3p1GlEtgEJpg="; - patches = [ - ./forget-build-dependencies-4-2.patch - (fetchpatch { - name = "mongodb-4.4.1-gcc11.patch"; - url = "https://raw.githubusercontent.com/gentoo/gentoo/7168257cad6ea7c4856b01c5703d0ed5b764367c/dev-db/mongodb/files/mongodb-4.4.1-gcc11.patch"; - sha256 = "sha256-RvfCP462RG+ZVjcb23DgCuxCdfPl2/UgH8N7FgCghGI="; - }) - (fetchpatch { - name = "mongodb-4.4.15-adjust-the-cache-alignment-assumptions.patch"; - url = "https://aur.archlinux.org/cgit/aur.git/plain/mongodb-4.4.15-adjust-cache-alignment-assumptions.patch.arm64?h=mongodb44"; - sha256 = "Ah4zdSFgXUJ/HSN8VRLJqDpNy3CjMCBnRqlpALXzx+g="; - }) - ] ++ lib.optionals stdenv.isDarwin [ ./asio-no-experimental-string-view-4-2.patch ]; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 9fbf9cb66a63..8b60bff7fab6 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1062,6 +1062,7 @@ mapAliases ({ mongodb-3_4 = throw "mongodb-3_4 has been removed, it's end of life since January 2020"; # Added 2022-11-30 mongodb-3_6 = throw "mongodb-3_6 has been removed, it's end of life since April 2021"; # Added 2022-11-30 mongodb-4_0 = throw "mongodb-4_0 has been removed, it's end of life since April 2022"; # Added 2023-01-05 + mongodb-4_2 = throw "mongodb-4_2 has been removed, it's end of life since April 2023"; # Added 2023-06-06 monodevelop = throw "monodevelop has been removed from nixpkgs"; # Added 2022-01-15 mopidy-gmusic = throw "mopidy-gmusic has been removed because Google Play Music was discontinued"; # Added 2021-03-07 mopidy-local-images = throw "mopidy-local-images has been removed as it's unmaintained. Its functionality has been merged into the mopidy-local extension"; # Added 2020-10-18 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a6c8004a554d..0a1411e6224c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25993,13 +25993,6 @@ with pkgs; mongodb = hiPrio mongodb-6_0; - mongodb-4_2 = callPackage ../servers/nosql/mongodb/v4_2.nix { - sasl = cyrus_sasl; - boost = boost169; - inherit (darwin) cctools; - inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; - }; - mongodb-4_4 = callPackage ../servers/nosql/mongodb/4.4.nix { sasl = cyrus_sasl; boost = boost17x.override { enableShared = false; };