Skip to content

Commit

Permalink
chore(mongodb): Use mongodb-ce; Enable test on darwin
Browse files Browse the repository at this point in the history
`mongodb` is not built by official hydra due to license restrictions,
see:
#339 (comment).
Hence, we use the pre-built binaries given by `mongodb-ce`
  • Loading branch information
shivaraj-bh committed Oct 13, 2024
1 parent 5d0662f commit 08bfbc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nix/services/mongodb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions test/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
]));
};
};
Expand Down

0 comments on commit 08bfbc5

Please sign in to comment.