Merge pull request #201135 from NobbZ/rustic-rs-0-3-2
rustic-rs: init at 0.3.2
This commit is contained in:
commit
0ad86f1a4f
36
pkgs/tools/backup/rustic-rs/default.nix
Normal file
36
pkgs/tools/backup/rustic-rs/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user