nixpkgs-suyu/pkgs/tools/security/2fa/default.nix

23 lines
512 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2018-09-26 08:33:51 +02:00
buildGoPackage rec {
2021-01-19 03:57:51 +01:00
version = "1.2.0";
pname = "2fa";
2018-09-26 08:33:51 +02:00
goPackagePath = "rsc.io/2fa";
src = fetchFromGitHub {
owner = "rsc";
repo = "2fa";
rev = "v${version}";
2021-01-19 03:57:51 +01:00
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
2018-09-26 08:33:51 +02:00
};
meta = with lib; {
homepage = "https://rsc.io/2fa";
2018-09-26 08:33:51 +02:00
description = "Two-factor authentication on the command line";
maintainers = with maintainers; [ rvolosatovs ];
license = licenses.bsd3;
};
}