depot/third_party/nixpkgs/pkgs/tools/security/kestrel/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

40 lines
948 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "kestrel";
version = "1.0.2";
src = fetchFromGitHub {
owner = "finfet";
repo = pname;
rev = "v${version}";
hash = "sha256-bKQBOk9yUqgnufRyyqXatsRHpesbM49rAkz0dD5XE80=";
};
cargoHash = "sha256-R5TRF4yvjQalsj1UA2kiLBuTOhqIbbHW6lvf1ixvJG4=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installManPage docs/man/kestrel.1
installShellCompletion --bash --name ${pname} completion/kestrel.bash-completion
'';
meta = with lib; {
description = "File encryption done right";
mainProgram = "kestrel";
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 ];
};
}