Merge master into staging-next
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "quich";
|
||||
version = "3.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Usbac";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1n9c01q2v6g9wnmxp248yclhp8cxclnj0yyn1qrvjsn6srcpr22c";
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
|
||||
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The advanced terminal calculator";
|
||||
longDescription = ''
|
||||
Quich is a compact, fast, powerful and useful calculator for your terminal
|
||||
with numerous features, supporting Windows and Linux Systems,
|
||||
written in ANSI C.
|
||||
'';
|
||||
homepage = "https://github.com/Usbac/quich";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.xdhampus ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -1,31 +1,40 @@
|
||||
{ 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" ])
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "vector";
|
||||
version = "0.12.1";
|
||||
version = "0.12.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "timberio";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0sw05472znxmggckxjbrl3b8ky8nsw42xmrsb41p8z4q0aw115fd";
|
||||
owner = "timberio";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-LutCzpJo47wvEze7bAObRVraNhVuQFc9NQ79NzKA9CM=";
|
||||
};
|
||||
|
||||
cargoSha256 = "0mfhrdqry6qrzfx5px1zqgfv5iqa186vl2yh290ibinkxy0x5fa9";
|
||||
cargoSha256 = "sha256-GU5p9DB5Bk8eQc1B/WA87grbVJVcT1ELJ0WzmRYgDzc=";
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl protobuf rdkafka ]
|
||||
++ lib.optional stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
|
||||
++ 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";
|
||||
@@ -54,8 +63,8 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "A high-performance logs, metrics, and events router";
|
||||
homepage = "https://github.com/timberio/vector";
|
||||
license = with licenses; [ asl20 ];
|
||||
homepage = "https://github.com/timberio/vector";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ thoughtpolice happysalada ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user