depot/pkgs/tools/backup/rdedup/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

29 lines
842 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
, xz
, Security }:
rustPlatform.buildRustPackage rec {
pname = "rdedup";
version = "3.2.1";
src = fetchFromGitHub {
owner = "dpc";
repo = "rdedup";
rev = "v${version}";
sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
};
cargoHash = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
buildInputs = [ openssl libsodium xz ]
++ (lib.optional stdenv.hostPlatform.isDarwin Security);
meta = with lib; {
description = "Data deduplication with compression and public key encryption";
mainProgram = "rdedup";
homepage = "https://github.com/dpc/rdedup";
license = licenses.mpl20;
maintainers = with maintainers; [ dywedir ];
};
}