sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / ke / kestrel / package.nix
blobea7e50e76948f7b9f95e7ab1e6c182e867bd38c0
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5   installShellFiles,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "kestrel";
10   version = "1.0.2";
12   src = fetchFromGitHub {
13     owner = "finfet";
14     repo = pname;
15     rev = "v${version}";
16     hash = "sha256-bKQBOk9yUqgnufRyyqXatsRHpesbM49rAkz0dD5XE80=";
17   };
19   cargoHash = "sha256-R5TRF4yvjQalsj1UA2kiLBuTOhqIbbHW6lvf1ixvJG4=";
21   nativeBuildInputs = [
22     installShellFiles
23   ];
25   postInstall = ''
26     installManPage docs/man/kestrel.1
27     installShellCompletion --bash --name ${pname} completion/kestrel.bash-completion
28   '';
30   meta = with lib; {
31     description = "File encryption done right";
32     mainProgram = "kestrel";
33     longDescription = "
34       Kestrel is a data-at-rest file encryption program
35       that lets you encrypt files to anyone with a public key.
36     ";
37     homepage = "https://getkestrel.com";
38     license = licenses.bsd3;
39     maintainers = with maintainers; [ zendo ];
40   };