mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
499ccb69e7
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
32 lines
793 B
Nix
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;
|
|
};
|
|
}
|