19 src = fetchFromGitHub {
20 owner = "openobserve";
23 hash = "sha256-AQxSR2cMkNst5YEv4TqVNgdriMsg/0ed5YN4W8qZKxM=";
25 web = buildNpmPackage {
27 pname = "openobserve-ui";
29 sourceRoot = "${src.name}/web";
31 npmDepsHash = "sha256-c82NLNLfqQrS/jv7ixpLCYDMEUtx6+Mm8cSwvVis2fc=";
34 # Patch vite config to not open the browser to visualize plugin composition
35 substituteInPlace vite.config.ts \
36 --replace "open: true" "open: false";
40 NODE_OPTIONS = "--max-old-space-size=8192";
41 # cypress tries to download binaries otherwise
42 CYPRESS_INSTALL_BINARY = 0;
48 mv dist $out/share/openobserve-ui
53 rustPlatform.buildRustPackage {
54 pname = "openobserve";
58 # prevent using git to determine version info during build time
63 cp -r ${web}/share/openobserve-ui web/dist
66 lockFile = ./Cargo.lock;
68 "enrichment-0.1.0" = "sha256-FDPSCBkx+DPeWwTBz9+ORcbbiSBC2a8tJaay9Pxwz4w=";
84 ] ++ lib.optionals stdenv.isDarwin (with apple_sdk.frameworks; [
93 RUSTONIG_SYSTEM_LIBONIG = true;
94 ZSTD_SYS_USE_PKG_CONFIG = true;
96 RUSTC_BOOTSTRAP = 1; # uses experimental features
98 # the patched build.rs file sets these variables
99 GIT_VERSION = src.rev;
100 GIT_COMMIT_HASH = "builtByNix";
101 GIT_BUILD_DATE = "1970-01-01T00:00:00Z";
104 # requires network access or filesystem mutations
106 "--skip handler::http::auth::tests::test_validate"
107 "--skip handler::http::router::ui::tests::test_index_not_ok"
108 "--skip handler::http::router::ui::tests::test_index_ok"
109 "--skip handler::http::request::search::saved_view::tests::test_create_view_post"
110 "--skip infra::cache::file_list::tests::test_get_file_from_cache"
111 "--skip infra::cache::tmpfs::tests::test_delete_prefix"
112 "--skip infra::cluster::tests::test_get_node_ip"
113 "--skip infra::db::tests::test_delete"
114 "--skip service::alerts::test::test_alerts"
115 "--skip service::compact::merge::tests::test_compact"
116 "--skip service::db::compact::file_list::tests::test_files"
117 "--skip service::db::compact::file_list::tests::test_file_list_offset"
118 "--skip service::db::compact::file_list::tests::test_file_list_process_offset"
119 "--skip service::db::compact::files::tests::test_compact_files"
120 "--skip service::db::user::tests::test_user"
121 "--skip service::ingestion::grpc::tests::test_get_val"
122 "--skip service::organization::tests::test_organization"
123 "--skip service::search::sql::tests::test_sql_full"
124 "--skip service::triggers::tests::test_triggers"
125 "--skip service::users::tests::test_post_user"
126 "--skip service::users::tests::test_user"
127 "--skip common::infra::cache::file_data::disk::tests::test_get_file_from_cache"
128 "--skip common::infra::db::tests::test_get"
129 "--skip common::utils::auth::tests::test_is_root_user2"
130 "--skip tests::e2e_test"
134 description = "A cloud-native observability platform built specifically for logs, metrics, traces, analytics & realtime user-monitoring";
135 homepage = "https://github.com/openobserve/openobserve";
136 license = licenses.asl20;
137 maintainers = with maintainers; [ happysalada ];
138 mainProgram = "openobserve";