mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
Diff: https://github.com/str4d/rage/compare/v0.12.0...v0.12.1 Changelog: https://github.com/str4d/rage/blob/v0.12.1/rage/CHANGELOG.md
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "rage";
|
|
version = "0.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "str4d";
|
|
repo = "rage";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-ZOY0cr0uO5ls3tj80PZqzbdjhcw9jKRJvHC60JaBOm0=";
|
|
};
|
|
|
|
cargoHash = "sha256-0PfePGkMOSbHemc8gWnQR7W4/R5EMuXBKaFntL6dSPI=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
# cargo test has an x86-only dependency
|
|
doCheck = stdenv.hostPlatform.isx86;
|
|
|
|
postInstall = ''
|
|
installManPage target/*/release/manpages/man1/*
|
|
installShellCompletion \
|
|
--bash target/*/release/completions/*.bash \
|
|
--fish target/*/release/completions/*.fish \
|
|
--zsh target/*/release/completions/_*
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability";
|
|
homepage = "https://github.com/str4d/rage";
|
|
changelog = "https://github.com/str4d/rage/blob/v${finalAttrs.version}/rage/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
mit
|
|
]; # either at your option
|
|
maintainers = with lib.maintainers; [ ryantm ];
|
|
mainProgram = "rage";
|
|
};
|
|
})
|