ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / go / go-2fa / package.nix
blob7261eb605c088bde8c40c717a2d7659b153218e9
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "2fa";
5   version = "1.2.0";
7   src = fetchFromGitHub {
8     owner = "rsc";
9     repo = "2fa";
10     rev = "v${version}";
11     sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
12   };
14   deleteVendor = true;
15   vendorHash = "sha256-4h/+ZNxlJPYY0Kyu2vDE1pDXxC/kGE5JdnagWVOGzAE=";
17   ldflags = [ "-s" "-w" ];
19   meta = with lib; {
20     homepage = "https://rsc.io/2fa";
21     description = "Two-factor authentication on the command line";
22     mainProgram = "2fa";
23     license = licenses.bsd3;
24     maintainers = with maintainers; [ rvolosatovs ];
25   };