python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / tools / backup / rdedup / default.nix
blobfdda197f18c59ed3f21c74dee8e0b303e2a57973
1 { lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
2 , xz
3 , Security }:
5 rustPlatform.buildRustPackage rec {
6   pname = "rdedup";
7   version = "3.2.1";
9   src = fetchFromGitHub {
10     owner = "dpc";
11     repo = "rdedup";
12     rev = "v${version}";
13     sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
14   };
16   cargoHash = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
18   nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
19   buildInputs = [ openssl libsodium xz ]
20     ++ (lib.optional stdenv.hostPlatform.isDarwin Security);
22   meta = with lib; {
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 ];
28   };