about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-01-03 12:39:50 -0800
committerJohn Wiegley <johnw@newartisans.com>2018-01-03 15:20:10 -0800
commit75634afba892419057ce93e72aa1360acc27c1a5 (patch)
treec1fd7a622821aa9e41e0daf39cadded3c91f9288
parente8caa47b357405ad3e4791e501e3e047ff8cba16 (diff)
downloadnixlib-75634afba892419057ce93e72aa1360acc27c1a5.tar
nixlib-75634afba892419057ce93e72aa1360acc27c1a5.tar.gz
nixlib-75634afba892419057ce93e72aa1360acc27c1a5.tar.bz2
nixlib-75634afba892419057ce93e72aa1360acc27c1a5.tar.lz
nixlib-75634afba892419057ce93e72aa1360acc27c1a5.tar.xz
nixlib-75634afba892419057ce93e72aa1360acc27c1a5.tar.zst
nixlib-75634afba892419057ce93e72aa1360acc27c1a5.zip
pass-otp: New expression
-rw-r--r--pkgs/tools/security/pass-otp/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix1
2 files changed, 26 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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 69bc811d7e14..670c4b1e46e1 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -626,6 +626,7 @@ with pkgs;
   lastpass-cli = callPackage ../tools/security/lastpass-cli { };
 
   pass = callPackage ../tools/security/pass { };
+  pass-otp = callPackage ../tools/security/pass-otp { };
 
   gopass = callPackage ../tools/security/gopass { };