15 rustPlatform.buildRustPackage rec {
16 inherit pname version;
18 src = fetchFromGitHub {
19 owner = "quickwit-oss";
22 hash = "sha256-FZVGQfDuQYIdRnCsBZvXeLbJBdcLugZeHNm+kf6L9SY=";
26 substituteInPlace ./quickwit-ingest/build.rs \
27 --replace-fail '.with_protos' '.with_includes(&["."]).with_protos'
28 substituteInPlace ./quickwit-codegen/example/build.rs \
29 --replace-fail '.with_protos' '.with_includes(&["."]).with_protos'
30 substituteInPlace ./quickwit-proto/build.rs \
31 --replace-fail '.with_protos' '.with_includes(&["."]).with_protos'
34 sourceRoot = "${src.name}/quickwit";
38 ] ++ lib.optionals stdenv.isDarwin [ Security ];
41 lockFile = ./Cargo.lock;
43 "chitchat-0.8.0" = "sha256-cjwKaBXoztYUXgnJvtFH+OSQU6tl2U3zKFWX324+9wo=";
44 "mrecordlog-0.4.0" = "sha256-9LIVs+BqK9FLSfHL3vm9LL+/FXIXJ6v617QLv4luQik=";
45 "ownedbytes-0.6.0" = "sha256-in18/NYYIgUiZ9sm8NgJlebWidRp34DR7AhOD1Nh0aw=";
46 "pulsar-5.0.2" = "sha256-j7wpsAro6x4fk3pvSL4fxLkddJFq8duZ7jDj0Edf3YQ=";
47 "sasl2-sys-0.1.20+2.1.28" = "sha256-u4BsfmTDFxuY3i1amLCsr7MDv356YPThMHclura0Sxs=";
48 "whichlang-0.1.0" = "sha256-7AvLGjtWHjG0TnZdg9p5D+O0H19uo2sqPxJMn6mOU0k=";
52 # needed for internal protobuf c wrapper library
53 PROTOC = "${protobuf}/bin/protoc";
54 PROTOC_INCLUDE = "${protobuf}/include";
56 passthru.updateScript = nix-update-script { };
59 # tries to make a network access
60 "--skip=test_all_local_index"
61 "--skip=test_cmd_create"
62 "--skip=test_cmd_create_no_index_uri"
63 "--skip=test_cmd_search_aggregation"
64 "--skip=test_cmd_search_with_snippets"
65 "--skip=test_delete_index_cli"
66 "--skip=test_delete_index_cli_dry_run"
67 "--skip=test_ingest_docs_cli"
68 "--skip=test_ingest_docs_cli_keep_cache"
69 "--skip=test_search_index_cli"
70 "--skip=test_garbage_collect_cli_no_grace"
71 "--skip=actors::indexing_service::tests::test_indexing_service_spawn_observe_detach"
72 "--skip=object_storage::s3_compatible_storage::tests::test_s3_compatible_storage_relative_path"
74 "--skip=actors::indexer::tests::test_indexer_triggers_commit_on_drained_mailbox"
75 "--skip=actors::indexer::tests::test_indexer_partitioning"
76 "--skip=actors::indexing_pipeline::tests::test_merge_pipeline_does_not_stop_on_indexing_pipeline_failure"
77 "--skip=actors::indexer::tests::test_indexer_triggers_commit_on_target_num_docs"
78 "--skip=actors::packager::tests::test_packager_simple"
79 # fail on darwin for some reason
80 "--skip=io::tests::test_controlled_writer_limited_async"
81 "--skip=io::tests::test_controlled_writer_limited_sync"
85 description = "Sub-second search & analytics engine on cloud storage";
86 homepage = "https://quickwit.io/";
87 license = licenses.agpl3Only;
88 maintainers = with maintainers; [ happysalada ];
89 platforms = platforms.all;