Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / fi / fido2luks / package.nix
blob0504959697c6a055e4d9f77c22afbcb9458a1241
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   cryptsetup,
6   pkg-config,
7 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "fido2luks";
10   version = "0.2.21";
12   src = fetchFromGitHub {
13     owner = "shimunn";
14     repo = pname;
15     rev = version;
16     sha256 = "sha256-bXwaFiRHURvS5KtTqIj+3GlGNbEulDgMDP51ZiO1w9o=";
17   };
19   cargoPatches = [
20     ./0001-libcryptsetup-rs-bump-version-to-0.9-55.patch
21     ./0002-cargo-update.patch
22   ];
24   nativeBuildInputs = [
25     pkg-config
26     rustPlatform.bindgenHook
27   ];
29   buildInputs = [ cryptsetup ];
31   cargoHash = "sha256-BcwcgQzNH1p9pOVbelaGTN7bKqDgvxD4Red2JeavpJQ=";
33   meta = {
34     description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";
35     homepage = "https://github.com/shimunn/fido2luks";
36     license = lib.licenses.mpl20;
37     maintainers = with lib.maintainers; [ mmahut ];
38     platforms = lib.platforms.linux;
39   };