From b0c601348a024b7f173326fa3b0f8f7fc1312556 Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Sat, 12 Oct 2024 20:01:34 +0530 Subject: [PATCH] feat(mongodb): Use `mongodb-ce`; Enable test on `darwin` `mongodb` is not built by official hydra due to license restrictions, see: https://github.com/juspay/services-flake/pull/339#issuecomment-2377968085. Hence, we use the pre-built binaries given by `mongodb-ce` --- nix/services/mongodb.nix | 2 +- test/flake.nix | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/nix/services/mongodb.nix b/nix/services/mongodb.nix index 6dc599c0..e28ca140 100644 --- a/nix/services/mongodb.nix +++ b/nix/services/mongodb.nix @@ -4,7 +4,7 @@ let in { options = { - package = lib.mkPackageOption pkgs "mongodb" { }; + package = lib.mkPackageOption pkgs "mongodb-ce" { }; bind = lib.mkOption { type = types.nullOr types.str; diff --git a/test/flake.nix b/test/flake.nix index 9364a56d..f5a43b54 100644 --- a/test/flake.nix +++ b/test/flake.nix @@ -38,6 +38,7 @@ "${inputs.services-flake}/nix/services/elasticsearch_test.nix" "${inputs.services-flake}/nix/services/grafana_test.nix" "${inputs.services-flake}/nix/services/memcached_test.nix" + "${inputs.services-flake}/nix/services/mongodb_test.nix" "${inputs.services-flake}/nix/services/nginx/nginx_test.nix" "${inputs.services-flake}/nix/services/ollama_test.nix" "${inputs.services-flake}/nix/services/open-webui_test.nix" @@ -51,10 +52,6 @@ "${inputs.services-flake}/nix/services/tika_test.nix" "${inputs.services-flake}/nix/services/weaviate_test.nix" "${inputs.services-flake}/nix/services/zookeeper_test.nix" - ] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [ - # Due to a dependency problem, MongoDB does not build on Darwin, - # See https://github.com/NixOS/nixpkgs/issues/346003 - "${inputs.services-flake}/nix/services/mongodb_test.nix" ])); }; };