1{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, libsodium, lzma }:
2
3rustPlatform.buildRustPackage rec {
4 name = "rdedup-${version}";
5 version = "2.0.0";
6
7 src = fetchFromGitHub {
8 owner = "dpc";
9 repo = "rdedup";
10 rev = "v${version}";
11 sha256 = "14r6x1wi5mwadarm0vp6qnr5mykv4g0kxz9msq76fhwghwb9k1d9";
12 };
13
14 buildInputs = [ pkgconfig libsodium lzma ];
15
16 cargoSha256 = "0wyswc4b4hkiw20gz0w94vv1qgcb2zq0cdaj9zxvyr5l0abxip9w";
17
18 meta = with stdenv.lib; {
19 description = "Data deduplication with compression and public key encryption";
20 homepage = https://github.com/dpc/rdedup;
21 license = licenses.mpl20;
22 maintainers = with maintainers; [ dywedir ];
23 platforms = platforms.all;
24 };
25}