vector: formatted with nixpkgs-fmt

This commit is contained in:
happysalada 2021-04-01 19:22:51 +09:00
parent 34bc549bfc
commit 1c32aa3516

View File

@ -1,8 +1,17 @@
{ stdenv, lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, protobuf
, Security, libiconv, rdkafka, tzdata, coreutils, CoreServices
, features ?
([ "jemallocator" "rdkafka" "rdkafka/dynamic_linking" ]
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, openssl
, pkg-config
, protobuf
, Security
, libiconv
, rdkafka
, tzdata
, coreutils
, CoreServices
, features ? ([ "jemallocator" "rdkafka" "rdkafka/dynamic_linking" ]
++ (lib.optional stdenv.targetPlatform.isUnix "unix")
++ [ "sinks" "sources" "transforms" ])
}:
@ -24,8 +33,8 @@ rustPlatform.buildRustPackage rec {
++ lib.optional stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
# needed for internal protobuf c wrapper library
PROTOC="${protobuf}/bin/protoc";
PROTOC_INCLUDE="${protobuf}/include";
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
cargoBuildFlags = [ "--no-default-features" "--features" (lib.concatStringsSep "," features) ];
checkPhase = "TZDIR=${tzdata}/share/zoneinfo cargo test --no-default-features --features ${lib.concatStringsSep "," features} -- --test-threads 1";