diff --git a/pkgs/tools/security/fido2luks/default.nix b/pkgs/tools/security/fido2luks/default.nix index 1747417e1162..8877419a4b74 100644 --- a/pkgs/tools/security/fido2luks/default.nix +++ b/pkgs/tools/security/fido2luks/default.nix @@ -5,6 +5,7 @@ , pkg-config , clang , llvmPackages +, fetchpatch }: rustPlatform.buildRustPackage rec { @@ -18,6 +19,15 @@ rustPlatform.buildRustPackage rec { sha256 = "04gl7wn38f42mapmkf026rya668vvhm03yi8iqnz31xgggbr2irm"; }; + cargoPatches = [ + #https://github.com/shimunn/fido2luks/pull/50 + (fetchpatch { + name = "libcryptsetup-rs.patch"; + url = "https://github.com/shimunn/fido2luks/commit/c87a9bbb4cbbe90be7385d4bc2946716c593b91d.diff"; + sha256 = "2IWz9gcEbXhHlz7VWoJNBZfwnJm/J3RRuXg91xH9Pl4="; + }) + ]; + buildInputs = [ cryptsetup ]; nativeBuildInputs = [ pkg-config clang ]; @@ -25,7 +35,7 @@ rustPlatform.buildRustPackage rec { export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib" ''; - cargoSha256 = "1sp52zsj0s3736zih71plnk01si24jsawnx0580qfgg322d5f601"; + cargoSha256 = "U/2dAmFmW6rQvojaKSDdO+/WzajBJmhOZWvzwdiYBm0="; meta = with lib; { description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator"; @@ -33,6 +43,5 @@ rustPlatform.buildRustPackage rec { license = licenses.gpl3; maintainers = with maintainers; [ prusnak mmahut ]; platforms = platforms.linux; - broken = true; # 2022-08-28 }; }