2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-12-01 11:57:05 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cryptsetup
|
|
|
|
, pkg-config
|
2020-10-13 10:01:23 +01:00
|
|
|
, clang
|
|
|
|
, llvmPackages
|
2019-12-01 11:57:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fido2luks";
|
2021-02-09 09:25:45 +00:00
|
|
|
version = "0.2.16";
|
2019-12-01 11:57:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shimunn";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-09 09:25:45 +00:00
|
|
|
sha256 = "sha256-WOdbdJAcMZHSnf7AkGnEumjaDut9J8VwSJYjqLUtPXs=";
|
2019-12-01 11:57:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cryptsetup ];
|
2020-10-13 10:01:23 +01:00
|
|
|
nativeBuildInputs = [ pkg-config clang ];
|
2019-12-01 11:57:05 +00:00
|
|
|
|
2020-10-13 10:01:23 +01:00
|
|
|
configurePhase = ''
|
|
|
|
export LIBCLANG_PATH="${llvmPackages.libclang}/lib"
|
|
|
|
'';
|
|
|
|
|
2021-02-09 09:25:45 +00:00
|
|
|
cargoSha256 = "sha256-4VuM1bPkl9XCI9XsZIJvw3kHSKgT4P7x6I83F2KCFD0=";
|
2019-12-01 11:57:05 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-01 11:57:05 +00:00
|
|
|
description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";
|
|
|
|
homepage = "https://github.com/shimunn/fido2luks";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ prusnak mmahut ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|