mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
go-2fa: use buildGoModule (#193459)
This commit is contained in:
parent
cb0c860e24
commit
34a497196e
@ -1,10 +1,8 @@
|
||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
version = "1.2.0";
|
||||
buildGoModule rec {
|
||||
pname = "2fa";
|
||||
|
||||
goPackagePath = "rsc.io/2fa";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rsc";
|
||||
@ -13,10 +11,15 @@ buildGoPackage rec {
|
||||
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
|
||||
};
|
||||
|
||||
deleteVendor = true;
|
||||
vendorSha256 = "sha256-4h/+ZNxlJPYY0Kyu2vDE1pDXxC/kGE5JdnagWVOGzAE=";
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://rsc.io/2fa";
|
||||
description = "Two-factor authentication on the command line";
|
||||
maintainers = with maintainers; [ rvolosatovs ];
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ rvolosatovs ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user