depot/third_party/nixpkgs/pkgs/tools/security/kestrel/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

39 lines
920 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "kestrel";
version = "0.10.0";
src = fetchFromGitHub {
owner = "finfet";
repo = pname;
rev = "v${version}";
hash = "sha256-aJKqx/PY7BanzE5AtqmKxvkULgXXqueGnDniLd9tHOg=";
};
cargoHash = "sha256-UnXaDdQzoYP1N2FnLjOQgiJKnCyCojXKKxVlWYZT0DE=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installManPage docs/man/kestrel.1
installShellCompletion --bash --name ${pname} completion/kestrel.bash-completion
'';
meta = with lib; {
description = "File encryption done right";
longDescription = "
Kestrel is a data-at-rest file encryption program
that lets you encrypt files to anyone with a public key.
";
homepage = "https://getkestrel.com";
license = licenses.bsd3;
maintainers = with maintainers; [ zendo ];
};
}