2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kestrel";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.10.1";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "finfet";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-kEM81HIfWETVrUiqXu1+3az+Stg3GdjHE7FaxXJgNYk=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
cargoHash = "sha256-xv35oFawFLVXZS3Eum6RCo8LcVvHftfv+UvJYYmIDx4=";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|