tremor-rs: build on darwin

This commit is contained in:
Stéphan Kochen 2021-05-09 19:55:51 +02:00
parent b64ef0127c
commit e28009cef5
2 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
{ lib, rustPlatform, pkg-config, cmake, llvmPackages, openssl, fetchFromGitHub { lib, rustPlatform, pkg-config, cmake, llvmPackages, openssl, fetchFromGitHub
, installShellFiles }: , installShellFiles, stdenv, Security, libiconv }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "tremor"; pname = "tremor";
@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ cmake pkg-config installShellFiles ]; nativeBuildInputs = [ cmake pkg-config installShellFiles ];
buildInputs = [ openssl ]; buildInputs = [ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ];
# TODO export TREMOR_PATH($out/lib) variable # TODO export TREMOR_PATH($out/lib) variable
postInstall = '' 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"; description = "Early stage event processing system for unstructured data with rich support for structural pattern matching, filtering and transformation";
homepage = "https://www.tremor.rs/"; homepage = "https://www.tremor.rs/";
license = licenses.asl20; license = licenses.asl20;
platforms = [ "x86_64-linux" ]; platforms = platforms.x86_64;
maintainers = with maintainers; [ humancalico ]; maintainers = with maintainers; [ humancalico ];
}; };
} }

View file

@ -9454,7 +9454,9 @@ in
tre = callPackage ../development/libraries/tre { }; 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 { }; ts = callPackage ../tools/system/ts { };