diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2021-02-05 08:19:49 +0530 |
---|---|---|
committer | Akshat Agarwal <humancalico@disroot.org> | 2021-02-21 14:51:01 +0530 |
commit | 6aaa89b38da1b679118c46534c6271aa6510cf28 (patch) | |
tree | 2237436dcd093c0f1b37503631c075846f9143bd /pkgs/tools/misc/tremor-rs/default.nix | |
parent | 24e5fe6075bc7a137bb701eb8a378f5a8689e10d (diff) | |
download | nixpkgs-6aaa89b38da1b679118c46534c6271aa6510cf28.tar nixpkgs-6aaa89b38da1b679118c46534c6271aa6510cf28.tar.gz nixpkgs-6aaa89b38da1b679118c46534c6271aa6510cf28.tar.bz2 nixpkgs-6aaa89b38da1b679118c46534c6271aa6510cf28.tar.lz nixpkgs-6aaa89b38da1b679118c46534c6271aa6510cf28.tar.xz nixpkgs-6aaa89b38da1b679118c46534c6271aa6510cf28.tar.zst nixpkgs-6aaa89b38da1b679118c46534c6271aa6510cf28.zip |
tremor-rs: init at v0.10.1
Signed-off-by: Akshat Agarwal <humancalico@disroot.org>
Diffstat (limited to 'pkgs/tools/misc/tremor-rs/default.nix')
-rw-r--r-- | pkgs/tools/misc/tremor-rs/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/misc/tremor-rs/default.nix b/pkgs/tools/misc/tremor-rs/default.nix new file mode 100644 index 00000000000..0db042120ca --- /dev/null +++ b/pkgs/tools/misc/tremor-rs/default.nix @@ -0,0 +1,43 @@ +{ lib, rustPlatform, pkg-config, cmake, llvmPackages, openssl, fetchFromGitHub +, installShellFiles }: + +rustPlatform.buildRustPackage rec { + pname = "tremor"; + version = "0.10.1"; + + src = fetchFromGitHub { + owner = "tremor-rs"; + repo = "tremor-runtime"; + rev = "v${version}"; + sha256 = "1z1khxfdj2j0xf7dp0x2cd9kl6r4qicp7kc4p4sdky2yib66512y"; + }; + + cargoSha256 = "sha256-rN/d6BL2d0D0ichQR6v0543Bh/Y2ktz8ExMH50M8B8c="; + + nativeBuildInputs = [ cmake pkg-config installShellFiles ]; + + buildInputs = [ openssl ]; + + postInstall = '' + installShellCompletion --cmd tremor \ + --bash <($out/bin/tremor completions bash) \ + --fish <($out/bin/tremor completions fish) \ + --zsh <($out/bin/tremor completions zsh) + ''; + + LIBCLANG_PATH = "${llvmPackages.libclang}/lib"; + + # OPENSSL_NO_VENDOR - If set, always find OpenSSL in the system, even if the vendored feature is enabled. + OPENSSL_NO_VENDOR = 1; + + cargoBuildFlags = [ "--all" ]; + + meta = with lib; { + 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" ]; + maintainers = with maintainers; [ humancalico ]; + }; +} |