Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2d8dc891aa36
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f86361d18635
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Oct 28, 2019

  1. vector: init at 0.5.0

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Oct 28, 2019
    Copy the full SHA
    f86361d View commit details
Showing with 45 additions and 0 deletions.
  1. +41 −0 pkgs/tools/misc/vector/default.nix
  2. +4 −0 pkgs/top-level/all-packages.nix
41 changes: 41 additions & 0 deletions pkgs/tools/misc/vector/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ stdenv, lib, fetchFromGitHub, rustPlatform
, openssl, pkgconfig, protobuf
, Security, libiconv

, features ?
(if stdenv.isAarch64
then [ "jemallocator" ]
else [ "leveldb" "jemallocator" ])
}:

rustPlatform.buildRustPackage rec {
pname = "vector";
version = "0.5.0";

src = fetchFromGitHub {
owner = "timberio";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "0niyxlvphn3awrpfh1hbqy767cckgjzyjrkqjxj844czxhh1hhff";
};

cargoSha256 = "0bdgan891hrah54g6aaysqizkxrfsbidnxihai0i7h7knzq9gsk5";
buildInputs = [ openssl pkgconfig protobuf ]
++ stdenv.lib.optional stdenv.isDarwin [ Security libiconv ];

# needed for internal protobuf c wrapper library
PROTOC="${protobuf}/bin/protoc";
PROTOC_INCLUDE="${protobuf}/include";

# rdkafka fails to build, for some reason...
cargoBuildFlags = [ "--no-default-features" "--features" "${lib.concatStringsSep "," features}" ];
checkPhase = ":"; # skip tests, too -- they don't respect the rdkafka flag...

meta = with stdenv.lib; {
description = "A high-performance logs, metrics, and events router";
homepage = "https://github.com/timberio/vector";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ thoughtpolice ];
platforms = platforms.all;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -24201,6 +24201,10 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};

vector = callPackage ../tools/misc/vector {
inherit (darwin.apple_sdk.frameworks) Security;
};

epkowa = callPackage ../misc/drivers/epkowa { };

utsushi = callPackage ../misc/drivers/utsushi { };