From e28009cef50fa4180fa87b348cca9afe160737f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Sun, 9 May 2021 19:55:51 +0200 Subject: [PATCH] tremor-rs: build on darwin --- pkgs/tools/misc/tremor-rs/default.nix | 7 ++++--- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/tremor-rs/default.nix b/pkgs/tools/misc/tremor-rs/default.nix index 73640de76bff..92bbfdb4defb 100644 --- a/pkgs/tools/misc/tremor-rs/default.nix +++ b/pkgs/tools/misc/tremor-rs/default.nix @@ -1,5 +1,5 @@ { lib, rustPlatform, pkg-config, cmake, llvmPackages, openssl, fetchFromGitHub -, installShellFiles }: +, installShellFiles, stdenv, Security, libiconv }: rustPlatform.buildRustPackage rec { pname = "tremor"; @@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ cmake pkg-config installShellFiles ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ]; # TODO export TREMOR_PATH($out/lib) variable postInstall = '' @@ -40,7 +41,7 @@ rustPlatform.buildRustPackage rec { 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 = [ "x86_64-linux" ]; + platforms = platforms.x86_64; maintainers = with maintainers; [ humancalico ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3fd58e1adac9..3eaf1d09612b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9454,7 +9454,9 @@ in tre = callPackage ../development/libraries/tre { }; - tremor-rs = callPackage ../tools/misc/tremor-rs { }; + tremor-rs = callPackage ../tools/misc/tremor-rs { + inherit (darwin.apple_sdk.frameworks) Security; + }; ts = callPackage ../tools/system/ts { };