nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 22 lines 512 B view raw
1{ lib, buildGoPackage, fetchFromGitHub }: 2 3buildGoPackage rec { 4 version = "1.2.0"; 5 pname = "2fa"; 6 7 goPackagePath = "rsc.io/2fa"; 8 9 src = fetchFromGitHub { 10 owner = "rsc"; 11 repo = "2fa"; 12 rev = "v${version}"; 13 sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY="; 14 }; 15 16 meta = with lib; { 17 homepage = "https://rsc.io/2fa"; 18 description = "Two-factor authentication on the command line"; 19 maintainers = with maintainers; [ rvolosatovs ]; 20 license = licenses.bsd3; 21 }; 22}