mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
tremor-rs: 0.12.4 -> 0.13.0-rc.33 (#355757)
This commit is contained in:
commit
6efe194fbe
2 changed files with 4132 additions and 2036 deletions
6091
pkgs/tools/misc/tremor-rs/Cargo.lock
generated
6091
pkgs/tools/misc/tremor-rs/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,41 +1,43 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, cmake
|
||||
, openssl
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, stdenv
|
||||
, Security
|
||||
, libiconv
|
||||
, protobuf
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
cmake,
|
||||
openssl,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
stdenv,
|
||||
Security,
|
||||
libiconv,
|
||||
protobuf,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "tremor";
|
||||
version = "0.12.4";
|
||||
version = "0.13.0-rc.33";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tremor-rs";
|
||||
repo = "tremor-runtime";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-+cN+nMDMX4rxjs1VQnSgjBvCsjxxAd13otp9qd21SYo=";
|
||||
hash = "sha256-DoFqHKTu4CvgDYPT4vbwNvSZ/lNTdAF+wlHOOIBJKUw=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"http-client-6.5.1" = "sha256-IfFZSiNqN4kiro8qSR5HV7e0U3nadS2vaYtBF+7UPVs=";
|
||||
"qwal-0.1.0" = "sha256-PFdqRTNht77+/7GWzJm7/wESEaO3QjTTY+aRwpK9Ddo=";
|
||||
"rdkafka-0.28.0" = "sha256-6dUGf5TRtiGz9OCxcrPmLdhtZoOd/aJR9VgNFQC2tnQ=";
|
||||
"window-0.1.1" = "sha256-H6w1Y8ClhXISNYmALSRSwfREOaMzccNafygc6E44NYs=";
|
||||
};
|
||||
};
|
||||
cargoHash = "sha256-mgg6yzjRZsDbnK19nhNmy2I95tPWD4NmGCXtI957D0M=";
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config installShellFiles rustPlatform.bindgenHook ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
installShellFiles
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [ openssl ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ];
|
||||
buildInputs =
|
||||
[ openssl ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
Security
|
||||
libiconv
|
||||
];
|
||||
|
||||
# relax lints to fix an error caused by invalid macro_export
|
||||
# error: `log_error` isn't a valid `#[macro_export]` argument
|
||||
|
@ -46,16 +48,18 @@ rustPlatform.buildRustPackage rec {
|
|||
'';
|
||||
|
||||
# TODO export TREMOR_PATH($out/lib) variable
|
||||
postInstall = ''
|
||||
# Copy the standard library to $out/lib
|
||||
cp -r ${src}/tremor-script/lib/ $out
|
||||
postInstall =
|
||||
''
|
||||
# Copy the standard library to $out/lib
|
||||
cp -r ${src}/tremor-script/lib/ $out
|
||||
|
||||
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd tremor \
|
||||
--bash <($out/bin/tremor completions bash) \
|
||||
--fish <($out/bin/tremor completions fish) \
|
||||
--zsh <($out/bin/tremor completions zsh)
|
||||
'';
|
||||
''
|
||||
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd tremor \
|
||||
--bash <($out/bin/tremor completions bash) \
|
||||
--fish <($out/bin/tremor completions fish) \
|
||||
--zsh <($out/bin/tremor completions zsh)
|
||||
'';
|
||||
|
||||
# OPENSSL_NO_VENDOR - If set, always find OpenSSL in the system, even if the vendored feature is enabled.
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
|
@ -91,6 +95,9 @@ rustPlatform.buildRustPackage rec {
|
|||
'';
|
||||
homepage = "https://www.tremor.rs/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ humancalico happysalada ];
|
||||
maintainers = with maintainers; [
|
||||
humancalico
|
||||
happysalada
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue