diff options
author | zendo <linzway@qq.com> | 2022-10-24 20:58:13 +0800 |
---|---|---|
committer | zendo <linzway@qq.com> | 2022-10-24 20:58:13 +0800 |
commit | e5e79becfe6063e611886345f1fa418540f88269 (patch) | |
tree | f8d56c56dbdf96c040ae7e479673b56096197333 /pkgs/tools/security/kestrel | |
parent | afd4752a3812a30f21adcc909484dd677e53b849 (diff) |
kestrel: init at 0.10.0
Diffstat (limited to 'pkgs/tools/security/kestrel')
-rw-r--r-- | pkgs/tools/security/kestrel/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/security/kestrel/default.nix b/pkgs/tools/security/kestrel/default.nix new file mode 100644 index 0000000000000..16f3a4f52a4e1 --- /dev/null +++ b/pkgs/tools/security/kestrel/default.nix @@ -0,0 +1,39 @@ +{ 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 ]; + }; +} |