2023-05-21 16:15:06 -06:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, rustPlatform
|
|
|
|
|
, git
|
|
|
|
|
, nix-update-script
|
|
|
|
|
, pkg-config
|
|
|
|
|
, openssl
|
|
|
|
|
, dbus
|
2024-04-20 09:33:24 -06:00
|
|
|
|
, AppKit
|
2023-05-21 16:15:06 -06:00
|
|
|
|
, Security
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
pname = "ockam";
|
2024-10-24 06:35:08 -06:00
|
|
|
|
version = "0.138.0";
|
2023-05-21 16:15:06 -06:00
|
|
|
|
in
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "build-trust";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "ockam_v${version}";
|
2024-10-24 06:35:08 -06:00
|
|
|
|
hash = "sha256-AY0i7qXA7JXfIEY0htmL+/yn71xAuh7WowXOs2fD6n8=";
|
2023-05-21 16:15:06 -06:00
|
|
|
|
};
|
|
|
|
|
|
2024-10-24 06:35:08 -06:00
|
|
|
|
cargoHash = "sha256-gAl2es8UFVFv40sMY++SiDGjCMdL0XDN4PeSV7VlGmQ=";
|
2023-05-21 16:15:06 -06:00
|
|
|
|
nativeBuildInputs = [ git pkg-config ];
|
|
|
|
|
buildInputs = [ openssl dbus ]
|
2024-04-20 09:33:24 -06:00
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit Security ];
|
2023-05-21 16:15:06 -06:00
|
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
|
|
# too many tests fail for now
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-07 22:29:45 -07:00
|
|
|
|
description = "Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications – at massive scale";
|
2023-05-21 16:15:06 -06:00
|
|
|
|
homepage = "https://github.com/build-trust/ockam";
|
|
|
|
|
license = licenses.mpl20;
|
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
|
};
|
|
|
|
|
}
|