blob: 6808cd5305ada2810ee8cd9f7ded75daf40172ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
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";
};
})
|