From fa2021c7b69916754655c525d7ebbc0bc946c003 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 12 Oct 2022 11:05:36 +0200 Subject: [PATCH] fido2luks: 0.2.20 -> 0.2.21 + fix license --- pkgs/tools/security/fido2luks/default.nix | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/security/fido2luks/default.nix b/pkgs/tools/security/fido2luks/default.nix index 8877419a4b74..9545f6781db6 100644 --- a/pkgs/tools/security/fido2luks/default.nix +++ b/pkgs/tools/security/fido2luks/default.nix @@ -10,37 +10,29 @@ rustPlatform.buildRustPackage rec { pname = "fido2luks"; - version = "0.2.20"; + version = "0.2.21"; src = fetchFromGitHub { owner = "shimunn"; repo = pname; rev = version; - sha256 = "04gl7wn38f42mapmkf026rya668vvhm03yi8iqnz31xgggbr2irm"; + sha256 = "sha256-bXwaFiRHURvS5KtTqIj+3GlGNbEulDgMDP51ZiO1w9o="; }; - cargoPatches = [ - #https://github.com/shimunn/fido2luks/pull/50 - (fetchpatch { - name = "libcryptsetup-rs.patch"; - url = "https://github.com/shimunn/fido2luks/commit/c87a9bbb4cbbe90be7385d4bc2946716c593b91d.diff"; - sha256 = "2IWz9gcEbXhHlz7VWoJNBZfwnJm/J3RRuXg91xH9Pl4="; - }) - ]; + nativeBuildInputs = [ pkg-config clang ]; buildInputs = [ cryptsetup ]; - nativeBuildInputs = [ pkg-config clang ]; configurePhase = '' export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib" ''; - cargoSha256 = "U/2dAmFmW6rQvojaKSDdO+/WzajBJmhOZWvzwdiYBm0="; + cargoSha256 = "sha256-MPji87jYJjYtDAXO+v/Z4XRtCKo+ftsNvmlBrM9iMTk="; meta = with lib; { description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator"; homepage = "https://github.com/shimunn/fido2luks"; - license = licenses.gpl3; + license = licenses.mpl20; maintainers = with maintainers; [ prusnak mmahut ]; platforms = platforms.linux; };