about summary refs log tree commit diff
path: root/pkgs/tools/misc/tremor-rs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/tremor-rs/default.nix')
-rw-r--r--pkgs/tools/misc/tremor-rs/default.nix43
1 files changed, 36 insertions, 7 deletions
diff --git a/pkgs/tools/misc/tremor-rs/default.nix b/pkgs/tools/misc/tremor-rs/default.nix
index 3277036d068b7..f626afb70cc41 100644
--- a/pkgs/tools/misc/tremor-rs/default.nix
+++ b/pkgs/tools/misc/tremor-rs/default.nix
@@ -1,18 +1,29 @@
-{ lib, rustPlatform, pkg-config, cmake, llvmPackages, openssl, fetchFromGitHub
-, installShellFiles, stdenv, Security, libiconv }:
+{ lib
+, rustPlatform
+, pkg-config
+, cmake
+, llvmPackages
+, openssl
+, fetchFromGitHub
+, installShellFiles
+, stdenv
+, Security
+, libiconv
+, protobuf
+}:
 
 rustPlatform.buildRustPackage rec {
   pname = "tremor";
-  version = "0.11.6";
+  version = "0.12.4";
 
   src = fetchFromGitHub {
     owner = "tremor-rs";
     repo = "tremor-runtime";
     rev = "v${version}";
-    sha256 = "1ldqa4q7q9afrbjh7adinav21zsh26pqqvrd6q9542r90mxnygmx";
+    sha256 = "sha256-+cN+nMDMX4rxjs1VQnSgjBvCsjxxAd13otp9qd21SYo=";
   };
 
-  cargoSha256 = "0ivxd5mhvcpzv9wf859vwyiq1s0bbd9vdk6fy6m81bn5ykihx7ar";
+  cargoSha256 = "sha256-MthdQXZPIOOd5A2bJO4p49e74s76M1HruLxLWbvog4I=";
 
   nativeBuildInputs = [ cmake pkg-config installShellFiles ];
 
@@ -35,14 +46,32 @@ rustPlatform.buildRustPackage rec {
   # OPENSSL_NO_VENDOR - If set, always find OpenSSL in the system, even if the vendored feature is enabled.
   OPENSSL_NO_VENDOR = 1;
 
+  # needed for internal protobuf c wrapper library
+  PROTOC = "${protobuf}/bin/protoc";
+  PROTOC_INCLUDE = "${protobuf}/include";
+
+  checkFlags = [
+    # all try to make a network access
+    "--skip=connectors::tests::http::server::https_server_test"
+    "--skip=connectors::tests::tcp::client::tls_client"
+    "--skip=connectors::tests::udp::udp_no_bind"
+    "--skip=connectors::tests::ws::ws_client_bad_config"
+    "--skip=connectors::tests::ws::wss_server_binary_routing"
+    "--skip=connectors::tests::ws::wss_server_text_routing"
+    "--skip=connectors::utils::tls::tests::client_config"
+  ];
+
   cargoBuildFlags = [ "-p tremor-cli" ];
 
   meta = with lib; {
     broken = stdenv.isDarwin;
-    description = "Early stage event processing system for unstructured data with rich support for structural pattern matching, filtering and transformation";
+    description = ''
+      Early stage event processing system for unstructured data with rich
+      support for structural pattern matching, filtering and transformation
+    '';
     homepage = "https://www.tremor.rs/";
     license = licenses.asl20;
     platforms = platforms.x86_64;
-    maintainers = with maintainers; [ humancalico ];
+    maintainers = with maintainers; [ humancalico happysalada ];
   };
 }