rustus: 1.0.0 -> 1.2.0 (#382941)
This commit is contained in:
@@ -7,27 +7,31 @@
|
||||
pkg-config,
|
||||
openssl,
|
||||
darwin,
|
||||
rdkafka,
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "rustus";
|
||||
version = "1.0.0";
|
||||
version = "1.1.2";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "s3rius";
|
||||
repo = pname;
|
||||
rev = "a7ebbc3f4c367b0c71b49972b1f6ebbeb08634b8";
|
||||
hash = "sha256-S3hq6G78HRQVLJuuwfC6U7NQXMSdllrC/ZolVPZRTsA=";
|
||||
repo = "rustus";
|
||||
tag = version;
|
||||
hash = "sha256-GgivjhgM1jl6fCNO5tPjtQmQl/me8FxXskZ4laTnkVE=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-PxXv9El81z6r1KJAMaF+pzB74tY3e2dxXzPPKakSeZ0=";
|
||||
cargoHash = "sha256-dDcdGTtwReplQgkvDjZKvQ71tdTvyXaF2vXWgOd6Eio=";
|
||||
|
||||
env.OPENSSL_NO_VENDOR = 1;
|
||||
|
||||
# needed to dynamically link rdkafka
|
||||
CARGO_FEATURE_DYNAMIC_LINKING = 1;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
@@ -35,6 +39,7 @@ rustPlatform.buildRustPackage {
|
||||
buildInputs =
|
||||
[
|
||||
openssl
|
||||
rdkafka
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
@@ -42,27 +47,22 @@ rustPlatform.buildRustPackage {
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
# too many tests fail for now
|
||||
# doCheck = false;
|
||||
# checkFlags = [
|
||||
# # tries to make a network access
|
||||
# "--skip=tests::curl_http_ockam"
|
||||
# "--skip=medium_file_transfer"
|
||||
# "--skip=medium_file_transfer_large_chunks"
|
||||
# "--skip=medium_file_transfer_small_chunks"
|
||||
# "--skip=tiny_file_transfer"
|
||||
# "--skip=tiny_file_transfer_small_chunks"
|
||||
# # tries to do IO
|
||||
# "--skip=cli_state::tests::integration"
|
||||
# "--skip=cli_state::tests::test_create_default_identity_state"
|
||||
# "--skip=cli_state::tests::test_create_named_identity_state"
|
||||
# "--skip=kafka::integration_test::test::producer__flow_with_mock_kafka__content_encryption_and_decryption"
|
||||
# "--skip=kafka::portal_worker::test::kafka_portal_worker__metadata_exchange__response_changed"
|
||||
# "--skip=full_flow"
|
||||
# "--skip=run::parser::tests::detect_circular_dependency"
|
||||
# "--skip=run::parser::tests::test_parse_config_with_depends_on"
|
||||
# "--skip=util::tests::test_process_multi_addr"
|
||||
# ];
|
||||
checkFlags = [
|
||||
# tries to make a network access
|
||||
"--skip=data_storage::impls::s3_storage::test::test_successfull_create_upload"
|
||||
"--skip=data_storage::impls::s3_storage::test::test_successfull_delete"
|
||||
"--skip=data_storage::impls::s3_storage::test::test_successfull_mime"
|
||||
"--skip=data_storage::impls::s3_storage::test::test_successfull_upload"
|
||||
"--skip=info_storage::impls::redis_storage::tests::deletion_success"
|
||||
"--skip=info_storage::impls::redis_storage::tests::success"
|
||||
"--skip=notifiers::impls::amqp_notifier::tests::success"
|
||||
"--skip=notifiers::impls::http_notifier::tests::forwarded_header"
|
||||
"--skip=notifiers::impls::http_notifier::tests::success_request"
|
||||
"--skip=notifiers::impls::http_notifier::tests::timeout_request"
|
||||
"--skip=notifiers::impls::http_notifier::tests::unknown_url"
|
||||
"--skip=notifiers::impls::kafka_notifier::test::simple_success_on_prefix"
|
||||
"--skip=notifiers::impls::kafka_notifier::test::simple_success_on_topic"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "TUS protocol implementation in Rust";
|
||||
|
||||
Reference in New Issue
Block a user