Merge pull request #201135 from NobbZ/rustic-rs-0-3-2

rustic-rs: init at 0.3.2
This commit is contained in:
Jörg Thalheim 2022-11-14 16:32:28 +01:00 committed by GitHub
commit 0ad86f1a4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib, fetchFromGitHub, rustPlatform, stdenv, darwin, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "rustic-rs";
version = "0.3.2";
src = fetchFromGitHub {
owner = "rustic-rs";
repo = "rustic";
rev = "v${version}";
hash = "sha256-MGFtJUfPK6IH3w8xe/RZaXS+QDIVS3jFSnf4VYiSLM4=";
};
cargoHash = "sha256-siJrqL7HjUQvcyXpUN5rQWNeQNBc+693N1xTSvlOixI=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
postInstall = ''
for shell in {ba,fi,z}sh; do
$out/bin/rustic completions $shell > rustic.$shell
done
installShellCompletion rustic.{ba,fi,z}sh
'';
meta = {
homepage = "https://github.com/rustic-rs/rustic";
changelog = "https://github.com/rustic-rs/rustic/blob/${src.rev}/changelog/${version}.txt";
description = "fast, encrypted, deduplicated backups powered by pure Rust";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
license = [ lib.licenses.mit lib.licenses.asl20 ];
maintainers = [ lib.maintainers.nobbz ];
};
}

View File

@ -24445,6 +24445,8 @@ with pkgs;
roon-server = callPackage ../servers/roon-server { };
rustic-rs = callPackage ../tools/backup/rustic-rs { };
supervise = callPackage ../tools/system/supervise { };
spamassassin = callPackage ../servers/mail/spamassassin { };