9 rustPlatform.buildRustPackage rec {
13 src = fetchFromGitHub {
17 hash = "sha256-7PfNDFDuvQ9T3BeA15FuY1jAprGLsyglWXcNrZvtPAE=";
20 cargoHash = "sha256-5aLT0JfeFj0fZP/1sHXulCQtoquHYriapMdPtN+fxko=";
26 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
27 darwin.apple_sdk.frameworks.Foundation
30 # cargo test has an x86-only dependency
31 doCheck = stdenv.hostPlatform.isx86;
34 installManPage target/*/release/manpages/man1/*
35 installShellCompletion \
36 --bash target/*/release/completions/*.bash \
37 --fish target/*/release/completions/*.fish \
38 --zsh target/*/release/completions/_*
42 description = "Simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability";
43 homepage = "https://github.com/str4d/rage";
44 changelog = "https://github.com/str4d/rage/blob/v${version}/rage/CHANGELOG.md";
45 license = with licenses; [ asl20 mit ]; # either at your option
46 maintainers = with maintainers; [ ryantm ];