b41113241d
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
32 lines
916 B
Nix
32 lines
916 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
|
|
, llvmPackages, clang, xz
|
|
, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rdedup";
|
|
version = "3.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dpc";
|
|
repo = "rdedup";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
|
|
|
|
nativeBuildInputs = [ pkg-config llvmPackages.libclang clang ];
|
|
buildInputs = [ openssl libsodium xz ]
|
|
++ (lib.optional stdenv.isDarwin Security);
|
|
|
|
configurePhase = ''
|
|
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Data deduplication with compression and public key encryption";
|
|
homepage = "https://github.com/dpc/rdedup";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ dywedir ];
|
|
};
|
|
}
|