2021-01-17 10:17:16 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
|
2023-05-27 01:32:57 +02:00
|
|
|
, xz
|
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";
|
2021-09-15 19:18:41 +02:00
|
|
|
version = "3.2.1";
|
2017-11-20 10:24:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dpc";
|
|
|
|
repo = "rdedup";
|
2021-09-15 19:18:41 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
|
2017-11-20 10:24:43 +01:00
|
|
|
};
|
|
|
|
|
2021-09-15 19:18:41 +02:00
|
|
|
cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
|
2017-11-20 10:24:43 +01:00
|
|
|
|
2023-05-27 01:32:57 +02:00
|
|
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
2021-03-14 19:12:53 +01:00
|
|
|
buildInputs = [ openssl libsodium xz ]
|
2021-01-15 10:19:50 +01:00
|
|
|
++ (lib.optional stdenv.isDarwin Security);
|
2019-02-13 11:06:20 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-11-20 10:24:43 +01:00
|
|
|
description = "Data deduplication with compression and public key encryption";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "rdedup";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/dpc/rdedup";
|
2017-11-20 10:24:43 +01:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ dywedir ];
|
|
|
|
};
|
|
|
|
}
|