fido2luks: migrate to bindgenHook

This commit is contained in:
Weijia Wang 2023-05-27 00:31:52 +03:00
parent c9bcecf0ab
commit ba79d2aa0c

View file

@ -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; {