Skip to content

Commit

Permalink
tremor-rs: build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed May 9, 2021
1 parent b64ef01 commit e28009c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkgs/tools/misc/tremor-rs/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, rustPlatform, pkg-config, cmake, llvmPackages, openssl, fetchFromGitHub
, installShellFiles }:
, installShellFiles, stdenv, Security, libiconv }:

rustPlatform.buildRustPackage rec {
pname = "tremor";
Expand All @@ -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 = ''
Expand All @@ -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 ];
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit e28009c

Please sign in to comment.