summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/simple
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-04-10 13:26:50 +0200
committertv <tv@krebsco.de>2018-04-10 13:26:50 +0200
commitf7b081500df47f51781e13bee5d71bf74e6bf2e9 (patch)
tree834c2f8836eb8ec53ea03e05cf563ceb37e86915 /tv/5pkgs/simple
parent00a1fae9a469fdf72a8b2808216b375d6181bf09 (diff)
tv pass-otp: init at 1.1.0
Import from nixpkgs 09bca91e3b5a18d7f37f7632175ac71f2bf369ff.
Diffstat (limited to 'tv/5pkgs/simple')
-rw-r--r--tv/5pkgs/simple/pass-otp/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/tv/5pkgs/simple/pass-otp/default.nix b/tv/5pkgs/simple/pass-otp/default.nix
new file mode 100644
index 0000000..7f0f44b
--- /dev/null
+++ b/tv/5pkgs/simple/pass-otp/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, pass, 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 = [ pass 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;
+ };
+}