streamlink: 7.1.1 -> 7.1.2 (#373269)
[NixPkgs.git] / pkgs / by-name / fi / fido2luks / package.nix
blobc19f7381a3bd711c371b35c18b3d84f419317303
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     hash = "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   };