diff options
author | lassulus <lass@blue.r> | 2018-10-09 11:30:02 +0200 |
---|---|---|
committer | lassulus <lass@blue.r> | 2018-10-09 11:30:02 +0200 |
commit | 60aeceba205f91ad55bd6a0b6f5236fa655a6bdb (patch) | |
tree | 58ea5456ab24ac84da31c3008554f7dc9ca87871 /tv/5pkgs/compat/18.03/pass-otp/default.nix | |
parent | 0b0a89695565f2ba244f17ee2404b6f0ed56e7c2 (diff) | |
parent | fd1e5ba45de8ef8662dacf4e9c93b167364eb3a5 (diff) |
Merge branch '18.09'
Diffstat (limited to 'tv/5pkgs/compat/18.03/pass-otp/default.nix')
-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 0000000..3341118 --- /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; + }; +} |