From db7ee2e5deb3af6657ad9d79301af89aad67fc81 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 27 May 2023 02:32:57 +0300 Subject: [PATCH] rdedup: migrate to bindgenHook --- pkgs/tools/backup/rdedup/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/backup/rdedup/default.nix b/pkgs/tools/backup/rdedup/default.nix index a922dcda9e44..c9b59782a585 100644 --- a/pkgs/tools/backup/rdedup/default.nix +++ b/pkgs/tools/backup/rdedup/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium -, llvmPackages, clang, xz +, xz , Security }: rustPlatform.buildRustPackage rec { @@ -15,14 +15,10 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI="; - nativeBuildInputs = [ pkg-config llvmPackages.libclang clang ]; + nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; buildInputs = [ openssl libsodium xz ] ++ (lib.optional stdenv.isDarwin Security); - configurePhase = '' - export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib" - ''; - meta = with lib; { description = "Data deduplication with compression and public key encryption"; homepage = "https://github.com/dpc/rdedup";