Unverified Commit e015f24e authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #289522 from risicle/ris-openobserve-0.8.1

openobserve: 0.7.2 -> 0.8.1
parents 714b778a 8979c170
Loading
Loading
Loading
Loading
+1122 −869

File changed.

Preview size limit exceeded, changes collapsed.

+16 −8
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, fetchpatch
, pkg-config
, protobuf
, bzip2
@@ -10,17 +11,17 @@
, zlib
, zstd
, stdenv
, darwin
, apple_sdk
, buildNpmPackage
}:

let
  version = "0.7.2";
  version = "0.8.1";
  src = fetchFromGitHub {
    owner = "openobserve";
    repo = "openobserve";
    rev = "v${version}";
    hash = "sha256-BFLQL3msDuurRSFOCbqN0vK4NrTS9M6k1hNwet/9mnw=";
    hash = "sha256-J8TuaWjtuR39XA7tizyI+DFkpOaLFweM+/9VImGj8UE=";
  };
  web = buildNpmPackage {
    inherit src version;
@@ -28,7 +29,7 @@ let

    sourceRoot = "source/web";

    npmDepsHash = "sha256-eYrspgejb5VR51wAXdGr+pSXDdGnRyX5cwwopK3Kex8=";
    npmDepsHash = "sha256-RNUCR80ewFt9F/VHv7kXLa87h0fz0YBp+9gSOUhtrdU=";

    preBuild = ''
      # Patch vite config to not open the browser to visualize plugin composition
@@ -37,6 +38,7 @@ let
    '';

    env = {
      NODE_OPTIONS = "--max-old-space-size=8192";
      # cypress tries to download binaries otherwise
      CYPRESS_INSTALL_BINARY = 0;
    };
@@ -53,8 +55,14 @@ rustPlatform.buildRustPackage {
  pname = "openobserve";
  inherit version src;

  # prevent using git to determine version info during build time
  patches = [
    (fetchpatch {
      name = "fix-test-hash-partition.patch";
      url = "https://github.com/openobserve/openobserve/commit/24919333d6b6696f0f9d9aff0a883431481e8fce.patch";
      includes = ["src/common/meta/stream.rs"];
      hash = "sha256-GB3Pgmp1swJt6ESgKL2eWOZ3jBcsN0r+5Dxasgg50D4=";
    })
    # prevent using git to determine version info during build time
    ./build.rs.patch
  ];

@@ -65,7 +73,6 @@ rustPlatform.buildRustPackage {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "enrichment-0.1.0" = "sha256-FDPSCBkx+DPeWwTBz9+ORcbbiSBC2a8tJaay9Pxwz4w=";
      "datafusion-33.0.0" = "sha256-RZAgk7up83zxPbmNzdnzB6M0yjjK9MYms+6TpXVDJ1o=";
    };
  };

@@ -81,8 +88,9 @@ rustPlatform.buildRustPackage {
    xz
    zlib
    zstd
  ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
  ] ++ lib.optionals stdenv.isDarwin (with apple_sdk.frameworks; [
    CoreFoundation
    CoreServices
    IOKit
    Security
    SystemConfiguration
@@ -130,7 +138,7 @@ rustPlatform.buildRustPackage {
  ];

  meta = with lib; {
    description = "10x easier, 🚀 140x lower storage cost, 🚀 high performance,  🚀 petabyte scale - Elasticsearch/Splunk/Datadog alternative for 🚀 (logs, metrics, traces";
    description = "A cloud-native observability platform built specifically for logs, metrics, traces, analytics & realtime user-monitoring.";
    homepage = "https://github.com/openobserve/openobserve";
    license = licenses.asl20;
    maintainers = with maintainers; [ happysalada ];
+2 −0
Original line number Diff line number Diff line
@@ -11467,6 +11467,8 @@ with pkgs;
  openfortivpn = callPackage ../tools/networking/openfortivpn { };
  openobserve = darwin.apple_sdk_11_0.callPackage ../by-name/op/openobserve/package.nix { apple_sdk = darwin.apple_sdk_11_0; };
  obexfs = callPackage ../tools/bluetooth/obexfs { };
  obexftp = callPackage ../tools/bluetooth/obexftp { };