depot/third_party/nixpkgs/pkgs/tools/networking/ockam/default.nix

45 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, git
, nix-update-script
, pkg-config
, openssl
, dbus
, AppKit
, Security
}:
let
pname = "ockam";
version = "0.132.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "build-trust";
repo = pname;
rev = "ockam_v${version}";
hash = "sha256-ynlXQoOTvfSWCL1BqvIjJYYUDGmjDa0HaN3L8I6p/7Q=";
};
cargoHash = "sha256-yOSCkOIprQoAGxPi1jsHPmQ9bVaudSNw13jL4jTNehY=";
nativeBuildInputs = [ git pkg-config ];
buildInputs = [ openssl dbus ]
++ lib.optionals stdenv.isDarwin [ AppKit Security ];
passthru.updateScript = nix-update-script { };
# too many tests fail for now
doCheck = false;
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 ];
};
}