Merge pull request #190304 from ehllie/fido2luks

This commit is contained in:
Pavol Rusnak 2022-09-08 19:30:28 +02:00 committed by GitHub
commit 3b7f511437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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