Update rage to latest package definition

This commit is contained in:
Rien Maertens 2021-01-31 22:25:24 +01:00
parent 37b1d2aa3f
commit a678a8748c
No known key found for this signature in database
GPG key ID: AE66CE42F1AF9DEF

View file

@ -2,20 +2,26 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "rage"; pname = "rage";
version = "unstable-2020-09-05"; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "str4d"; owner = "str4d";
repo = pname; repo = pname;
rev = "8368992e60cbedb2d6b725c3e25440e65d8544d1"; rev = "v${version}";
sha256 = "sha256-ICcApZQrR4hGxo/RcFMktenE4dswAXA2/nJ5D++O2ig="; sha256 = "sha256-XSDfAsXfwSoe5JMdJtZlC324Sra+4fVJhE3/k2TthEc=";
}; };
cargoSha256 = "sha256-QwNtp7Hxsiads3bh8NRra25RdPbIdjp+pSWTllAvdmQ="; cargoSha256 = "sha256-GPr5zxeODAjD+ynp/nned9gZUiReYcdzosuEbLIKZSs=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.Security ]; buildInputs = with darwin; stdenv.lib.optionals stdenv.isDarwin [
Security
Foundation
];
# cargo test has an x86-only dependency
doCheck = stdenv.hostPlatform.isx86;
postBuild = '' postBuild = ''
cargo run --example generate-docs cargo run --example generate-docs
@ -31,7 +37,7 @@ rustPlatform.buildRustPackage rec {
description = "A simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability"; description = "A simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability";
homepage = "https://github.com/str4d/rage"; homepage = "https://github.com/str4d/rage";
changelog = "https://github.com/str4d/rage/releases/tag/v${version}"; changelog = "https://github.com/str4d/rage/releases/tag/v${version}";
license = licenses.asl20; license = with licenses; [ asl20 mit ]; # either at your option
maintainers = [ maintainers.marsam ]; maintainers = with maintainers; [ marsam ryantm ];
}; };
} }