about summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorRoman Volosatovs <rvolosatovs@riseup.net>2018-09-26 08:33:51 +0200
committerRobin Gloster <mail@glob.in>2018-09-26 11:36:02 +0200
commiteb7b21718275f128355fe28695a53fb9ce0cd8fe (patch)
treea0a792d0fb9e69c96d5e5c0ed368fa555a71170d /pkgs/tools/security
parent0e5e4aed067bd715e103dd974831deebd200404b (diff)
downloadnixlib-eb7b21718275f128355fe28695a53fb9ce0cd8fe.tar
nixlib-eb7b21718275f128355fe28695a53fb9ce0cd8fe.tar.gz
nixlib-eb7b21718275f128355fe28695a53fb9ce0cd8fe.tar.bz2
nixlib-eb7b21718275f128355fe28695a53fb9ce0cd8fe.tar.lz
nixlib-eb7b21718275f128355fe28695a53fb9ce0cd8fe.tar.xz
nixlib-eb7b21718275f128355fe28695a53fb9ce0cd8fe.tar.zst
nixlib-eb7b21718275f128355fe28695a53fb9ce0cd8fe.zip
go-2fa: Init at 1.1.0
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/2fa/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/security/2fa/default.nix b/pkgs/tools/security/2fa/default.nix
new file mode 100644
index 000000000000..68b9194015b1
--- /dev/null
+++ b/pkgs/tools/security/2fa/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  version = "1.1.0";
+  name = "2fa-${version}";
+
+  goPackagePath = "rsc.io/2fa";
+
+  src = fetchFromGitHub {
+    owner = "rsc";
+    repo = "2fa";
+    rev = "v${version}";
+    sha256 = "0827vl2bxd6m2rbj00x7857cs7cic3mlg5nlhqzd0n73dm5vk2za";
+  };
+
+  meta = with stdenv.lib; {
+    homepage = https://rsc.io/2fa;
+    description = "Two-factor authentication on the command line";
+    platforms = platforms.all;
+    maintainers = with maintainers; [ rvolosatovs ];
+    license = licenses.bsd3;
+  };
+}