about summary refs log tree commit diff
path: root/pkgs/tools/security/pass-otp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/security/pass-otp/default.nix')
-rw-r--r--pkgs/tools/security/pass-otp/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/security/pass-otp/default.nix b/pkgs/tools/security/pass-otp/default.nix
new file mode 100644
index 000000000000..70350f669e97
--- /dev/null
+++ b/pkgs/tools/security/pass-otp/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, pass, fetchFromGitHub }:
+stdenv.mkDerivation {
+  name = "pass-otp";
+
+  src = fetchFromGitHub {
+    owner = "tadfisher";
+    repo = "pass-otp";
+    rev = "f2feb3082324a91089782af9b7fbb71d34aa213d";
+    sha256 = "0iklvcfgw1320dggdr02lq3bc7xvnd2934l1w9kkjpbsfmhs955c";
+  };
+
+  buildInputs = [ pass ];
+
+  installPhase = ''
+    make PREFIX=$out install
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A pass extension for managing one-time-password (OTP) tokens";
+    homepage = https://github.com/tadfisher/pass-otp;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ jwiegley ];
+    platforms = platforms.unix;
+  };
+}