{ lib , fetchFromGitHub , rustPlatform , installShellFiles }: rustPlatform.buildRustPackage rec { pname = "kestrel"; version = "1.0.1"; src = fetchFromGitHub { owner = "finfet"; repo = pname; rev = "v${version}"; hash = "sha256-aj8c4Hagdqoi7Q/AM0drjyrGOvqrT35sEjc2TC0ei6M="; }; cargoHash = "sha256-D3yGIZr6/jaySacdz0yOPQUpKsuYlgBGx0V/4lXuVuw="; 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 ]; }; }