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

39 lines
1.0 KiB
Nix
Raw Normal View History

2018-07-30 10:50:51 +00: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 11:41:23 +00: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
};
cargoSha256 = "1zvg68ilgpnd95b36jvna9h1jr5d72x1a0g6flw2x6sd0msc0mdw";
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 10:50:51 +00: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
};
}