1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/tools/security/pass/extensions/otp.nix
R. RyanTM 499ccb69e7 passExtensions.pass-otp: 1.1.0 -> 1.1.1 (#42973)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/pass-otp/versions.

Version release notes (from GitHub):

These checks were done:

- built on NixOS

- 0 of 0 passed binary check by having a zero exit code.
- 0 of 0 passed binary check by having the new version present in output.
- found 1.1.1 with grep in /nix/store/qam419864q7zv1fllmjpsylw6c0b76y6-pass-otp-1.1.1
- directory tree listing: https://gist.github.com/7a35773fe3bff95a565cc4f539706da6
- du listing: https://gist.github.com/adf137d812986c88efa0c217189d79a3
2018-07-06 20:43:45 +02:00

32 lines
793 B
Nix

{ stdenv, fetchFromGitHub, oathToolkit }:
stdenv.mkDerivation rec {
name = "pass-otp-${version}";
version = "1.1.1";
src = fetchFromGitHub {
owner = "tadfisher";
repo = "pass-otp";
rev = "v${version}";
sha256 = "0m8x5dqwcr9jim530685nsq4zn941hhl7ridmmd63b204z141rwa";
};
buildInputs = [ oathToolkit ];
dontBuild = true;
patchPhase = ''
sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
'';
installFlags = [ "PREFIX=$(out)" ];
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;
};
}