2022-10-13 14:00:36 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-09-26 06:33:51 +00:00
|
|
|
|
2022-10-13 14:00:36 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "2fa";
|
2022-10-13 14:00:36 +00:00
|
|
|
version = "1.2.0";
|
2018-09-26 06:33:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rsc";
|
|
|
|
repo = "2fa";
|
|
|
|
rev = "v${version}";
|
2021-01-19 02:57:51 +00:00
|
|
|
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
|
2018-09-26 06:33:51 +00:00
|
|
|
};
|
|
|
|
|
2022-10-13 14:00:36 +00:00
|
|
|
deleteVendor = true;
|
|
|
|
vendorSha256 = "sha256-4h/+ZNxlJPYY0Kyu2vDE1pDXxC/kGE5JdnagWVOGzAE=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://rsc.io/2fa";
|
2018-09-26 06:33:51 +00:00
|
|
|
description = "Two-factor authentication on the command line";
|
|
|
|
license = licenses.bsd3;
|
2022-10-13 14:00:36 +00:00
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
2018-09-26 06:33:51 +00:00
|
|
|
};
|
|
|
|
}
|