2018-07-30 11:50:51 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium
|
2020-01-18 18:55:51 +00:00
|
|
|
, llvmPackages, clang, lzma
|
2019-02-13 10:06:20 +00:00
|
|
|
, Security }:
|
2017-11-20 09:24:43 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "rdedup";
|
2019-02-13 10:06:20 +00:00
|
|
|
version = "3.1.1";
|
2017-11-20 09:24:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dpc";
|
|
|
|
repo = "rdedup";
|
2019-02-13 10:06:20 +00:00
|
|
|
rev = "rdedup-v${version}";
|
|
|
|
sha256 = "0y34a3mpghdmcb2rx4z62q0s351bfmy1287d75mm07ryfgglgsd7";
|
2017-11-20 09:24:43 +00:00
|
|
|
};
|
|
|
|
|
2020-02-14 02:00:26 +00:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2019-05-25 12:03:08 +01:00
|
|
|
cargoSha256 = "19j1xscchnckqq1nddx9nr9wxxv124ab40l4mdalqbkli4zd748j";
|
2019-02-13 10:06:20 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./v3.1.1-fix-Cargo.lock.patch
|
|
|
|
];
|
2017-11-20 09:24:43 +00:00
|
|
|
|
2020-01-18 18:55:51 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig llvmPackages.libclang clang ];
|
2019-02-13 10:06:20 +00:00
|
|
|
buildInputs = [ openssl libsodium lzma ]
|
|
|
|
++ (stdenv.lib.optional stdenv.isDarwin Security);
|
|
|
|
|
2018-07-30 11:50:51 +01:00
|
|
|
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;
|
2019-02-13 10:12:01 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2017-11-20 09:24:43 +00:00
|
|
|
};
|
|
|
|
}
|