10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-aZs1iqfpsiMuhxXNqRatpKD99eDBCsWHk4OPpnnaB70=";
21 cargoHash = "sha256-2cbW5GexETIjDzKjeYB7my3Q7Ev5fRrWh8eaBYZLmGM=";
27 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
28 darwin.apple_sdk.frameworks.Foundation
31 # cargo test has an x86-only dependency
32 doCheck = stdenv.hostPlatform.isx86;
35 installManPage target/*/release/manpages/man1/*
36 installShellCompletion \
37 --bash target/*/release/completions/*.bash \
38 --fish target/*/release/completions/*.fish \
39 --zsh target/*/release/completions/_*
43 description = "Simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability";
44 homepage = "https://github.com/str4d/rage";
45 changelog = "https://github.com/str4d/rage/blob/v${version}/rage/CHANGELOG.md";
46 license = with licenses; [
49 ]; # either at your option
50 maintainers = with maintainers; [ ryantm ];