2019-12-01 11:57:05 +00:00
|
|
|
{ stdenv
|
|
|
|
, 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";
|
2020-10-13 10:01:23 +01:00
|
|
|
version = "0.2.15";
|
2019-12-01 11:57:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shimunn";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-10-13 10:01:23 +01:00
|
|
|
sha256 = "1v5gxcz4zbc673i5kbsnjq8bikf7jdbn3wjfz1wppjrgwnkgvsh9";
|
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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
cargoSha256 = "19drjql13z8bw257z10kjppxm25jlfgrpc9g1jf68ka5j2b3nx7k";
|
2019-12-01 11:57:05 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|