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

38 lines
861 B
Nix
Raw Normal View History

{ lib
2019-12-01 12:57:05 +01:00
, rustPlatform
, fetchFromGitHub
, cryptsetup
, pkg-config
, clang
, llvmPackages
2019-12-01 12:57:05 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "fido2luks";
2021-07-27 03:20:18 +02:00
version = "0.2.19";
2019-12-01 12:57:05 +01:00
src = fetchFromGitHub {
owner = "shimunn";
repo = pname;
rev = version;
2021-07-27 03:20:18 +02:00
sha256 = "sha256-o21KdsAE9KznobdMMKfVmVnENsLW3cMZjssnrsoN+KY=";
2019-12-01 12:57:05 +01:00
};
buildInputs = [ cryptsetup ];
nativeBuildInputs = [ pkg-config clang ];
2019-12-01 12:57:05 +01:00
configurePhase = ''
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"
'';
2021-07-27 03:20:18 +02:00
cargoSha256 = "sha256-8JFe3mivf2Ewu1nLMugeeK+9ZXAGPHaqCyKfWfwLOc8=";
2019-12-01 12:57:05 +01:00
meta = with lib; {
2019-12-01 12:57:05 +01: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;
};
}