2023-05-24 13:37:59 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, rustPlatform
|
|
|
|
|
, git
|
|
|
|
|
, nix-update-script
|
|
|
|
|
, pkg-config
|
|
|
|
|
, openssl
|
|
|
|
|
, dbus
|
2024-04-21 15:54:59 +00:00
|
|
|
|
, AppKit
|
2023-05-24 13:37:59 +00:00
|
|
|
|
, Security
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
pname = "ockam";
|
2024-10-04 16:56:33 +00:00
|
|
|
|
version = "0.134.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
in
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "build-trust";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "ockam_v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
|
hash = "sha256-6HZI0Gsxn3GmklHl9zJ6yY73FlqcLiyMAqJg8BBmzqg=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
|
cargoHash = "sha256-VZt7tDewvz7eGpAKzD8pYOnH/3BtH6cULp6uX7CPxX8=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
nativeBuildInputs = [ git pkg-config ];
|
|
|
|
|
buildInputs = [ openssl dbus ]
|
2024-09-26 11:04:55 +00:00
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit Security ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
|
|
# too many tests fail for now
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
|
description = "Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications – at massive scale";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
homepage = "https://github.com/build-trust/ockam";
|
|
|
|
|
license = licenses.mpl20;
|
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
|
};
|
|
|
|
|
}
|