Merge pull request #190304 from ehllie/fido2luks
This commit is contained in:
commit
3b7f511437
1 changed files with 11 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, clang
|
, clang
|
||||||
, llvmPackages
|
, llvmPackages
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
@ -18,6 +19,15 @@ rustPlatform.buildRustPackage rec {
|
||||||
sha256 = "04gl7wn38f42mapmkf026rya668vvhm03yi8iqnz31xgggbr2irm";
|
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 ];
|
buildInputs = [ cryptsetup ];
|
||||||
nativeBuildInputs = [ pkg-config clang ];
|
nativeBuildInputs = [ pkg-config clang ];
|
||||||
|
|
||||||
|
@ -25,7 +35,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
|
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cargoSha256 = "1sp52zsj0s3736zih71plnk01si24jsawnx0580qfgg322d5f601";
|
cargoSha256 = "U/2dAmFmW6rQvojaKSDdO+/WzajBJmhOZWvzwdiYBm0=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";
|
description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";
|
||||||
|
@ -33,6 +43,5 @@ rustPlatform.buildRustPackage rec {
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ prusnak mmahut ];
|
maintainers = with maintainers; [ prusnak mmahut ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
broken = true; # 2022-08-28
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue