Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "2fa"; 5 version = "1.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "rsc"; 9 repo = "2fa"; 10 rev = "v${version}"; 11 sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY="; 12 }; 13 14 deleteVendor = true; 15 vendorSha256 = "sha256-4h/+ZNxlJPYY0Kyu2vDE1pDXxC/kGE5JdnagWVOGzAE="; 16 17 ldflags = [ "-s" "-w" ]; 18 19 meta = with lib; { 20 homepage = "https://rsc.io/2fa"; 21 description = "Two-factor authentication on the command line"; 22 license = licenses.bsd3; 23 maintainers = with maintainers; [ rvolosatovs ]; 24 }; 25}