9 rustPlatform.buildRustPackage rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-/qrhD7AqVGMBi6PyvYww5PxukUU//KrttKqnPS0OYPc=";
20 cargoSha256 = "sha256-hVjtjeaIyySAHm3v0kFQ387THqYU1s+nGdBUwzIzBjg=";
26 buildInputs = lib.optionals stdenv.isDarwin [
30 # cargo test has an x86-only dependency
31 doCheck = stdenv.hostPlatform.isx86;
34 cargo run --example generate-docs
35 cargo run --example generate-completions
39 installManPage target/manpages/*
40 installShellCompletion target/completions/*.{bash,fish,zsh}
44 description = "A simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability";
45 homepage = "https://github.com/str4d/rage";
46 changelog = "https://github.com/str4d/rage/raw/v${version}/rage/CHANGELOG.md";
47 license = with licenses; [ asl20 mit ]; # either at your option
48 maintainers = with maintainers; [ marsam ryantm ];