diff options
author | jeschli <jeschli@gmail.com> | 2018-10-26 12:25:40 +0200 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2018-10-26 12:25:40 +0200 |
commit | a6670e5090dd71aacd7c7605b12d8d3410d25daa (patch) | |
tree | 8475a3cc3583d94959a1cc8b6effcd3b8c10a32a /tv/5pkgs/compat/18.03/pass-otp | |
parent | f6ad60a0c6cbac45e8ba715b24a7a37f8e2560dc (diff) | |
parent | 24f4e8dcf0eca55378fa018a9ed980625222653d (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'tv/5pkgs/compat/18.03/pass-otp')
-rw-r--r-- | tv/5pkgs/compat/18.03/pass-otp/default.nix | 30 |
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; + }; +} |