summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/pass-otp
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-04-17 20:30:45 +0200
committerjeschli <jeschli@gmail.com>2018-04-17 20:30:45 +0200
commit537806ba0f3043d31e0b4c10edb8b6ba035d9dad (patch)
tree64ebd7d443b97c6d8ec34132f40d864e2a0c179f /krebs/5pkgs/simple/pass-otp
parent511b45543ad8a0a135425c71108c6907180444d5 (diff)
parent554026a7796e59fcbc82fa44c11636e56a25a9f2 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/simple/pass-otp')
-rw-r--r--krebs/5pkgs/simple/pass-otp/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/pass-otp/default.nix b/krebs/5pkgs/simple/pass-otp/default.nix
new file mode 100644
index 000000000..33411180a
--- /dev/null
+++ b/krebs/5pkgs/simple/pass-otp/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, oathToolkit }:
+stdenv.mkDerivation rec {
+ name = "pass-otp-${version}";
+ version = "1.1.0";
+
+ src = fetchFromGitHub {
+ owner = "tadfisher";
+ repo = "pass-otp";
+ rev = "v${version}";
+ sha256 = "1cgj4zc8fq88n3h6c0vkv9i5al785mdprpgpbv5m22dz9p1wqvbb";
+ };
+
+ buildInputs = [ oathToolkit ];
+
+ patchPhase = ''
+ sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
+ '';
+
+ 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 tadfisher ];
+ platforms = platforms.unix;
+ };
+}