2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2018-09-25 23:33:51 -07:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2021-01-18 18:57:51 -08:00
|
|
|
version = "1.2.0";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "2fa";
|
2018-09-25 23:33:51 -07:00
|
|
|
|
|
|
|
goPackagePath = "rsc.io/2fa";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rsc";
|
|
|
|
repo = "2fa";
|
|
|
|
rev = "v${version}";
|
2021-01-18 18:57:51 -08:00
|
|
|
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
|
2018-09-25 23:33:51 -07:00
|
|
|
};
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://rsc.io/2fa";
|
2018-09-25 23:33:51 -07:00
|
|
|
description = "Two-factor authentication on the command line";
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|