summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/compat/18.03/pass-otp
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-10-07 11:41:44 +0200
committerlassulus <lass@blue.r>2018-10-07 11:41:44 +0200
commitee07881154f247d792e9121f3eb1c1b1275cd938 (patch)
treef048764fe696907d23c680cff44b695fccb27fb8 /tv/5pkgs/compat/18.03/pass-otp
parentea82a695cf7895bd607cec4b5b80f3f90e736ce1 (diff)
parent5641a6ad03baccf299be6574193a37dd16e17137 (diff)
Merge remote-tracking branch 'ni/master' into 18.09
Diffstat (limited to 'tv/5pkgs/compat/18.03/pass-otp')
-rw-r--r--tv/5pkgs/compat/18.03/pass-otp/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/tv/5pkgs/compat/18.03/pass-otp/default.nix b/tv/5pkgs/compat/18.03/pass-otp/default.nix
new file mode 100644
index 000000000..33411180a
--- /dev/null
+++ b/tv/5pkgs/compat/18.03/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;
+ };
+}