From ba79d2aa0c10ab526fd5331b8c8ccf7f4e3b8552 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 27 May 2023 00:31:52 +0300 Subject: [PATCH] fido2luks: migrate to bindgenHook --- pkgs/tools/security/fido2luks/default.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkgs/tools/security/fido2luks/default.nix b/pkgs/tools/security/fido2luks/default.nix index 9545f6781db6..123b73819bdc 100644 --- a/pkgs/tools/security/fido2luks/default.nix +++ b/pkgs/tools/security/fido2luks/default.nix @@ -3,9 +3,6 @@ , fetchFromGitHub , cryptsetup , pkg-config -, clang -, llvmPackages -, fetchpatch }: rustPlatform.buildRustPackage rec { @@ -19,14 +16,10 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-bXwaFiRHURvS5KtTqIj+3GlGNbEulDgMDP51ZiO1w9o="; }; - nativeBuildInputs = [ pkg-config clang ]; + nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; buildInputs = [ cryptsetup ]; - configurePhase = '' - export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib" - ''; - cargoSha256 = "sha256-MPji87jYJjYtDAXO+v/Z4XRtCKo+ftsNvmlBrM9iMTk="; meta = with lib; {