2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
|
2023-07-15 17:15:38 +00:00
|
|
|
, xz
|
2020-04-24 23:36:52 +00:00
|
|
|
, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rdedup";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dpc";
|
|
|
|
repo = "rdedup";
|
2021-09-18 10:52:07 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ openssl libsodium xz ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ (lib.optional stdenv.hostPlatform.isDarwin Security);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Data deduplication with compression and public key encryption";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "rdedup";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dpc/rdedup";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ dywedir ];
|
|
|
|
};
|
|
|
|
}
|