depot/third_party/nixpkgs/pkgs/tools/networking/ockam/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

63 lines
2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, git
, nix-update-script
, pkg-config
, openssl
, dbus
, Security
}:
let
pname = "ockam";
version = "0.115.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "build-trust";
repo = pname;
rev = "ockam_v${version}";
sha256 = "sha256-DPRMPGxOuF4FwDXyVNxv9j2qy3K1p/9AVmrp0pPUQXM=";
};
cargoHash = "sha256-SeBv2yO0E60C4xMGf/7LOOyTOXf8vZCxIBC1dU2CAX0=";
nativeBuildInputs = [ git pkg-config ];
buildInputs = [ openssl dbus ]
++ lib.optionals stdenv.isDarwin [ 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 = with lib; {
description = "Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications at massive scale";
homepage = "https://github.com/build-trust/ockam";
license = licenses.mpl20;
maintainers = with maintainers; [ happysalada ];
platforms = platforms.linux;
};
}