2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "2fa";
|
|
|
|
|
|
|
|
goPackagePath = "rsc.io/2fa";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rsc";
|
|
|
|
repo = "2fa";
|
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://rsc.io/2fa";
|
|
|
|
description = "Two-factor authentication on the command line";
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|