summary refs log tree commit diff
path: root/pkgs/tools/security/otpauth/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/security/otpauth/default.nix')
-rw-r--r--pkgs/tools/security/otpauth/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/security/otpauth/default.nix b/pkgs/tools/security/otpauth/default.nix
new file mode 100644
index 00000000000..66e6dab5681
--- /dev/null
+++ b/pkgs/tools/security/otpauth/default.nix
@@ -0,0 +1,27 @@
+{ lib
+, fetchFromGitHub
+, buildGoModule
+}:
+
+buildGoModule rec {
+  pname = "otpauth";
+  version = "0.3.4";
+
+  src = fetchFromGitHub {
+    owner = "dim13";
+    repo = "otpauth";
+    rev = "v${version}";
+    sha256 = "199kh544kx4cbsczc9anmciczi738gdc5g518ybb05h49vlb51dp";
+  };
+
+  runVend = true;
+  vendorSha256 = "1762cchqydgsf94y05dwxcrajvjr64ayi5xk1svn1xissyc7vgpv";
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Google Authenticator migration decoder";
+    homepage = "https://github.com/dim13/otpauth";
+    license = licenses.isc;
+    maintainers = with maintainers; [ ereslibre ];
+  };
+}