nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, rustPlatform
3, fetchFromGitHub
4, cryptsetup
5, pkg-config
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "fido2luks";
10 version = "0.2.21";
11
12 src = fetchFromGitHub {
13 owner = "shimunn";
14 repo = pname;
15 rev = version;
16 sha256 = "sha256-bXwaFiRHURvS5KtTqIj+3GlGNbEulDgMDP51ZiO1w9o=";
17 };
18
19 nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
20
21 buildInputs = [ cryptsetup ];
22
23 cargoSha256 = "sha256-MPji87jYJjYtDAXO+v/Z4XRtCKo+ftsNvmlBrM9iMTk=";
24
25 meta = with lib; {
26 description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";
27 homepage = "https://github.com/shimunn/fido2luks";
28 license = licenses.mpl20;
29 maintainers = with maintainers; [ prusnak mmahut ];
30 platforms = platforms.linux;
31 };
32}