nixpkgs/pkgs/tools/security/fido2luks/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
895 B
Nix
Raw Normal View History

{ lib
2019-12-01 11:57:05 +00:00
, rustPlatform
, fetchFromGitHub
, cryptsetup
, pkg-config
, clang
, llvmPackages
2019-12-01 11:57:05 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "fido2luks";
2022-04-28 10:50:21 +00:00
version = "0.2.20";
2019-12-01 11:57:05 +00:00
src = fetchFromGitHub {
owner = "shimunn";
repo = pname;
rev = version;
2022-04-28 10:50:21 +00:00
sha256 = "04gl7wn38f42mapmkf026rya668vvhm03yi8iqnz31xgggbr2irm";
2019-12-01 11:57:05 +00:00
};
buildInputs = [ cryptsetup ];
nativeBuildInputs = [ pkg-config clang ];
2019-12-01 11:57:05 +00:00
configurePhase = ''
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
'';
2022-04-28 10:50:21 +00:00
cargoSha256 = "1sp52zsj0s3736zih71plnk01si24jsawnx0580qfgg322d5f601";
2019-12-01 11:57:05 +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;
2022-08-28 23:28:32 +00:00
broken = true; # 2022-08-28
2019-12-01 11:57:05 +00:00
};
}