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

buildGoPackage rec {
  version = "1.1.0";
  name = "2fa-${version}";

  goPackagePath = "rsc.io/2fa";

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

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