2018-07-30 12:50:51 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium
|
2019-02-13 11:06:20 +01:00
|
|
|
, llvmPackages, clang_39, lzma
|
|
|
|
, Security }:
|
2017-11-20 10:24:43 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "rdedup";
|
2019-02-13 11:06:20 +01:00
|
|
|
version = "3.1.1";
|
2017-11-20 10:24:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dpc";
|
|
|
|
repo = "rdedup";
|
2019-02-13 11:06:20 +01:00
|
|
|
rev = "rdedup-v${version}";
|
|
|
|
sha256 = "0y34a3mpghdmcb2rx4z62q0s351bfmy1287d75mm07ryfgglgsd7";
|
2017-11-20 10:24:43 +01:00
|
|
|
};
|
|
|
|
|
2019-05-25 13:03:08 +02:00
|
|
|
cargoSha256 = "19j1xscchnckqq1nddx9nr9wxxv124ab40l4mdalqbkli4zd748j";
|
2019-02-13 11:06:20 +01:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./v3.1.1-fix-Cargo.lock.patch
|
|
|
|
];
|
2017-11-20 10:24:43 +01:00
|
|
|
|
2018-07-30 12:50:51 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig llvmPackages.libclang clang_39 ];
|
2019-02-13 11:06:20 +01:00
|
|
|
buildInputs = [ openssl libsodium lzma ]
|
|
|
|
++ (stdenv.lib.optional stdenv.isDarwin Security);
|
|
|
|
|
2018-07-30 12:50:51 +02:00
|
|
|
configurePhase = ''
|
|
|
|
export LIBCLANG_PATH="${llvmPackages.libclang}/lib"
|
|
|
|
'';
|
2017-11-20 10:24:43 +01: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;
|
2019-02-13 11:12:01 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2017-11-20 10:24:43 +01:00
|
|
|
};
|
|
|
|
}
|