1 { lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
5 rustPlatform.buildRustPackage rec {
9 src = fetchFromGitHub {
13 sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
16 cargoHash = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
18 nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
19 buildInputs = [ openssl libsodium xz ]
20 ++ (lib.optional stdenv.hostPlatform.isDarwin Security);
23 description = "Data deduplication with compression and public key encryption";
24 mainProgram = "rdedup";
25 homepage = "https://github.com/dpc/rdedup";
26 license = licenses.mpl20;
27 maintainers = with maintainers; [ dywedir ];