summary refs log tree commit diff
path: root/pkgs/tools/security/2fa/default.nix
blob: c8518ef0a9fbe6ba5cf1e19936ac75ac2404da8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  version = "1.2.0";
  pname = "2fa";

  goPackagePath = "rsc.io/2fa";

  src = fetchFromGitHub {
    owner = "rsc";
    repo = "2fa";
    rev = "v${version}";
    sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
  };

  meta = with lib; {
    homepage = "https://rsc.io/2fa";
    description = "Two-factor authentication on the command line";
    maintainers = with maintainers; [ rvolosatovs ];
    license = licenses.bsd3;
  };
}