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

38 lines
1,021 B
Nix
Raw Normal View History

2018-07-30 12:50:51 +02:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium
2020-01-18 19:55:51 +01:00
, llvmPackages, clang, lzma
2019-02-13 11:06:20 +01:00
, 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
};
cargoSha256 = "0akwb7ak4h1i1zk4wcn27zyqjz6mrchs47014xbzw22rj8h8dx92";
2019-02-13 11:06:20 +01:00
cargoPatches = [
2019-02-13 11:06:20 +01:00
./v3.1.1-fix-Cargo.lock.patch
];
2017-11-20 10:24:43 +01:00
2020-01-18 19:55:51 +01:00
nativeBuildInputs = [ pkgconfig llvmPackages.libclang clang ];
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";
2017-11-20 10:24:43 +01:00
license = licenses.mpl20;
maintainers = with maintainers; [ dywedir ];
2019-02-13 11:12:01 +01:00
broken = stdenv.isDarwin;
2017-11-20 10:24:43 +01:00
};
}