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
···
1
1
+
{ lib, fetchFromGitHub, rustPlatform, stdenv, darwin, installShellFiles }:
2
2
+
3
3
+
rustPlatform.buildRustPackage rec {
4
4
+
pname = "rustic-rs";
5
5
+
version = "0.3.2";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "rustic-rs";
9
9
+
repo = "rustic";
10
10
+
rev = "v${version}";
11
11
+
hash = "sha256-MGFtJUfPK6IH3w8xe/RZaXS+QDIVS3jFSnf4VYiSLM4=";
12
12
+
};
13
13
+
14
14
+
cargoHash = "sha256-siJrqL7HjUQvcyXpUN5rQWNeQNBc+693N1xTSvlOixI=";
15
15
+
16
16
+
nativeBuildInputs = [ installShellFiles ];
17
17
+
18
18
+
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
19
19
+
20
20
+
postInstall = ''
21
21
+
for shell in {ba,fi,z}sh; do
22
22
+
$out/bin/rustic completions $shell > rustic.$shell
23
23
+
done
24
24
+
25
25
+
installShellCompletion rustic.{ba,fi,z}sh
26
26
+
'';
27
27
+
28
28
+
meta = {
29
29
+
homepage = "https://github.com/rustic-rs/rustic";
30
30
+
changelog = "https://github.com/rustic-rs/rustic/blob/${src.rev}/changelog/${version}.txt";
31
31
+
description = "fast, encrypted, deduplicated backups powered by pure Rust";
32
32
+
platforms = lib.platforms.linux ++ lib.platforms.darwin;
33
33
+
license = [ lib.licenses.mit lib.licenses.asl20 ];
34
34
+
maintainers = [ lib.maintainers.nobbz ];
35
35
+
};
36
36
+
}
+2
pkgs/top-level/all-packages.nix
···
24433
24433
24434
24434
roon-server = callPackage ../servers/roon-server { };
24435
24435
24436
24436
+
rustic-rs = callPackage ../tools/backup/rustic-rs { };
24437
24437
+
24436
24438
supervise = callPackage ../tools/system/supervise { };
24437
24439
24438
24440
spamassassin = callPackage ../servers/mail/spamassassin { };