tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rustic-rs: init at 0.3.2
Norbert Melzer
3 years ago
b676b764
a5d8197f
+38
2 changed files
expand all
collapse all
unified
split
pkgs
tools
backup
rustic-rs
default.nix
top-level
all-packages.nix
+36
pkgs/tools/backup/rustic-rs/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib, fetchFromGitHub, rustPlatform, stdenv, darwin, installShellFiles }:
2
+
3
+
rustPlatform.buildRustPackage rec {
4
+
pname = "rustic-rs";
5
+
version = "0.3.2";
6
+
7
+
src = fetchFromGitHub {
8
+
owner = "rustic-rs";
9
+
repo = "rustic";
10
+
rev = "v${version}";
11
+
hash = "sha256-MGFtJUfPK6IH3w8xe/RZaXS+QDIVS3jFSnf4VYiSLM4=";
12
+
};
13
+
14
+
cargoHash = "sha256-siJrqL7HjUQvcyXpUN5rQWNeQNBc+693N1xTSvlOixI=";
15
+
16
+
nativeBuildInputs = [ installShellFiles ];
17
+
18
+
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
19
+
20
+
postInstall = ''
21
+
for shell in {ba,fi,z}sh; do
22
+
$out/bin/rustic completions $shell > rustic.$shell
23
+
done
24
+
25
+
installShellCompletion rustic.{ba,fi,z}sh
26
+
'';
27
+
28
+
meta = {
29
+
homepage = "https://github.com/rustic-rs/rustic";
30
+
changelog = "https://github.com/rustic-rs/rustic/blob/${src.rev}/changelog/${version}.txt";
31
+
description = "fast, encrypted, deduplicated backups powered by pure Rust";
32
+
platforms = lib.platforms.linux ++ lib.platforms.darwin;
33
+
license = [ lib.licenses.mit lib.licenses.asl20 ];
34
+
maintainers = [ lib.maintainers.nobbz ];
35
+
};
36
+
}
+2
pkgs/top-level/all-packages.nix
···
24433
24434
roon-server = callPackage ../servers/roon-server { };
24435
0
0
24436
supervise = callPackage ../tools/system/supervise { };
24437
24438
spamassassin = callPackage ../servers/mail/spamassassin { };
···
24433
24434
roon-server = callPackage ../servers/roon-server { };
24435
24436
+
rustic-rs = callPackage ../tools/backup/rustic-rs { };
24437
+
24438
supervise = callPackage ../tools/system/supervise { };
24439
24440
spamassassin = callPackage ../servers/mail/spamassassin { };