summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorMarek Mahut <marek.mahut@gmail.com>2020-01-12 16:47:46 +0100
committerGitHub <noreply@github.com>2020-01-12 16:47:46 +0100
commit48b537e12705edcc9573dfc39f4e550412342eb7 (patch)
treea80a9ad7444e634e6b18fdcc7f49e214f08ee05f /pkgs/tools/security
parent484014d1221bfd490f7c1a17981f45c239d7999c (diff)
parent865fc6c97b243c26fdcf9ab5d0dd140adc4054c2 (diff)
downloadnixpkgs-48b537e12705edcc9573dfc39f4e550412342eb7.tar
nixpkgs-48b537e12705edcc9573dfc39f4e550412342eb7.tar.gz
nixpkgs-48b537e12705edcc9573dfc39f4e550412342eb7.tar.bz2
nixpkgs-48b537e12705edcc9573dfc39f4e550412342eb7.tar.lz
nixpkgs-48b537e12705edcc9573dfc39f4e550412342eb7.tar.xz
nixpkgs-48b537e12705edcc9573dfc39f4e550412342eb7.tar.zst
nixpkgs-48b537e12705edcc9573dfc39f4e550412342eb7.zip
Merge pull request #74780 from prusnak/fido2luks
fido2luks: init at 0.2.2
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/fido2luks/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/security/fido2luks/default.nix b/pkgs/tools/security/fido2luks/default.nix
new file mode 100644
index 00000000000..0bb5a91a81a
--- /dev/null
+++ b/pkgs/tools/security/fido2luks/default.nix
@@ -0,0 +1,32 @@
+{ stdenv
+, rustPlatform
+, fetchFromGitHub
+, cryptsetup
+, pkg-config
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "fido2luks";
+  version = "0.2.2";
+
+  src = fetchFromGitHub {
+    owner = "shimunn";
+    repo = pname;
+    rev = version;
+    sha256 = "018qzbgmgm0f0d0c7i54nqqjbr4k5mzy1xfavi6hpifjll971wci";
+  };
+
+  buildInputs = [ cryptsetup ];
+  nativeBuildInputs = [ pkg-config ];
+
+  cargoSha256 = "1kf757wxxk5h8dfbz588qw1pnyjbg5qzr7rz14i7x8rhmn5xwb74";
+  verifyCargoDeps = true;
+
+  meta = with stdenv.lib; {
+    description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";
+    homepage = "https://github.com/shimunn/fido2luks";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ prusnak mmahut ];
+    platforms = platforms.linux;
+  };
+}