Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rage";
|
|
version = "0.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "str4d";
|
|
repo = "rage";
|
|
rev = "v${version}";
|
|
hash = "sha256-aZs1iqfpsiMuhxXNqRatpKD99eDBCsWHk4OPpnnaB70=";
|
|
};
|
|
|
|
cargoHash = "sha256-GdvqkB/jHAGUbzhOLPkIX664JJH3WrZZtv+/E/PhTR8=";
|
|
|
|
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${version}/rage/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
mit
|
|
]; # either at your option
|
|
maintainers = with lib.maintainers; [ ryantm ];
|
|
mainProgram = "rage";
|
|
};
|
|
}
|