mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
41 lines
888 B
Nix
41 lines
888 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
cryptsetup,
|
|
pkg-config,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fido2luks";
|
|
version = "0.2.21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shimunn";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-bXwaFiRHURvS5KtTqIj+3GlGNbEulDgMDP51ZiO1w9o=";
|
|
};
|
|
|
|
cargoPatches = [
|
|
./0001-libcryptsetup-rs-bump-version-to-0.9-55.patch
|
|
./0002-cargo-update.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = [ cryptsetup ];
|
|
|
|
cargoHash = "sha256-BcwcgQzNH1p9pOVbelaGTN7bKqDgvxD4Red2JeavpJQ=";
|
|
|
|
meta = {
|
|
description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";
|
|
homepage = "https://github.com/shimunn/fido2luks";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ mmahut ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|