nixpkgs/pkgs/by-name/ru/rustus/package.nix

75 lines
2.0 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
rustPlatform,
nix-update-script,
pkg-config,
openssl,
darwin,
}:
let
pname = "rustus";
version = "0.7.6-unstable-2024-05-10";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "s3rius";
repo = pname;
rev = "a7ebbc3f4c367b0c71b49972b1f6ebbeb08634b8";
hash = "sha256-S3hq6G78HRQVLJuuwfC6U7NQXMSdllrC/ZolVPZRTsA=";
};
cargoHash = "sha256-uN0nXI15LxtSQpUCOJ8QIdgw2OyQO3i5alTik/fI8GI=";
env.OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [
pkg-config
];
buildInputs =
[
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
];
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"
# ];
meta = {
description = "TUS protocol implementation in Rust";
mainProgram = "rustus";
homepage = "https://s3rius.github.io/rustus/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
platforms = lib.platforms.all;
};
}