nixpkgs/pkgs/tools/backup/rdedup/default.nix

32 lines
934 B
Nix
Raw Normal View History

2018-07-30 10:50:51 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium
, llvmPackages, clang_39, lzma }:
2017-11-20 09:24:43 +00:00
rustPlatform.buildRustPackage rec {
name = "rdedup-${version}";
2018-07-30 10:50:51 +00:00
version = "3.0.1";
2017-11-20 09:24:43 +00:00
src = fetchFromGitHub {
owner = "dpc";
repo = "rdedup";
2018-07-30 10:50:51 +00:00
rev = "e0f26f379a434f76d238c7a5fa6ddd8ae8b32f19";
sha256 = "1nhf8ap0w99aa1h0l599cx90lcvfvjaj67nw9flq9bmmzpn53kp9";
2017-11-20 09:24:43 +00:00
};
2018-07-30 10:50:51 +00:00
cargoSha256 = "1x6wchlcxb1frww6y04gfx4idxv9h0g9qfxrhgb6g5qy3bqhqq3p";
2017-11-20 09:24:43 +00:00
2018-07-30 10:50:51 +00:00
nativeBuildInputs = [ pkgconfig llvmPackages.libclang clang_39 ];
buildInputs = [ openssl libsodium lzma ];
configurePhase = ''
export LIBCLANG_PATH="${llvmPackages.libclang}/lib"
'';
2017-11-20 09:24:43 +00:00
meta = with stdenv.lib; {
description = "Data deduplication with compression and public key encryption";
homepage = https://github.com/dpc/rdedup;
license = licenses.mpl20;
maintainers = with maintainers; [ dywedir ];
platforms = platforms.all;
};
}